visionforge/demo/playground/src/jvmMain/kotlin/gdmlCubes.kt

19 lines
516 B
Kotlin
Raw Normal View History

2021-03-07 16:19:43 +03:00
package space.kscience.visionforge.examples
2021-05-05 15:28:06 +03:00
import space.kscience.dataforge.context.Context
import space.kscience.gdml.GdmlShowCase
2021-03-07 16:19:43 +03:00
import space.kscience.visionforge.gdml.toVision
import space.kscience.visionforge.html.ResourceLocation
import space.kscience.visionforge.solid.Solids
2021-05-05 15:28:06 +03:00
fun main() {
val context = Context {
plugin(Solids)
}
context.makeVisionFile(resourceLocation = ResourceLocation.SYSTEM){
vision("canvas") {
2021-05-05 15:28:06 +03:00
GdmlShowCase.cubes().toVision()
}
}
}