2021-03-07 16:19:43 +03:00
|
|
|
package space.kscience.visionforge.examples
|
2021-02-24 13:42:55 +03:00
|
|
|
|
2021-03-07 16:19:43 +03:00
|
|
|
import space.kscience.dataforge.misc.DFExperimental
|
|
|
|
import space.kscience.visionforge.VisionForge
|
|
|
|
import space.kscience.visionforge.gdml.GdmlShowcase.cubes
|
|
|
|
import space.kscience.visionforge.gdml.toVision
|
|
|
|
import space.kscience.visionforge.html.ResourceLocation
|
|
|
|
import space.kscience.visionforge.html.fragment
|
|
|
|
import space.kscience.visionforge.invoke
|
|
|
|
import space.kscience.visionforge.solid.Solids
|
2021-02-24 13:42:55 +03:00
|
|
|
|
|
|
|
@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 {
|
2021-02-24 13:42:55 +03:00
|
|
|
vision("canvas") {
|
2021-02-24 18:26:15 +03:00
|
|
|
cubes.toVision()
|
2021-02-24 13:42:55 +03:00
|
|
|
}
|
|
|
|
}
|
2021-02-26 13:03:40 +03:00
|
|
|
makeVisionFile(content, resourceLocation = ResourceLocation.SYSTEM)
|
2021-02-24 13:42:55 +03:00
|
|
|
}
|