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

20 lines
620 B
Kotlin
Raw Normal View History

package hep.dataforge.vision.examples
import hep.dataforge.misc.DFExperimental
import hep.dataforge.vision.VisionForge
import hep.dataforge.vision.gdml.GdmlShowcase.cubes
2021-02-24 18:26:15 +03:00
import hep.dataforge.vision.gdml.toVision
import hep.dataforge.vision.html.ResourceLocation
import hep.dataforge.vision.html.fragment
2021-02-26 13:03:40 +03:00
import hep.dataforge.vision.invoke
2021-02-27 21:40:58 +03:00
import hep.dataforge.vision.solid.Solids
@DFExperimental
2021-02-27 21:40:58 +03:00
fun main() = VisionForge(Solids) {
2021-02-26 13:03:40 +03:00
val content = VisionForge.fragment {
vision("canvas") {
2021-02-24 18:26:15 +03:00
cubes.toVision()
}
}
2021-02-26 13:03:40 +03:00
makeVisionFile(content, resourceLocation = ResourceLocation.SYSTEM)
}