2021-01-12 12:52:22 +03:00
|
|
|
package hep.dataforge.vision.examples
|
|
|
|
|
2021-02-16 14:49:15 +03:00
|
|
|
import hep.dataforge.misc.DFExperimental
|
2021-01-12 12:52:22 +03:00
|
|
|
import hep.dataforge.vision.VisionForge
|
|
|
|
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
|
2021-01-12 12:52:22 +03:00
|
|
|
import hep.dataforge.vision.solid.box
|
|
|
|
import hep.dataforge.vision.solid.solid
|
|
|
|
|
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 = fragment {
|
2021-01-12 12:52:22 +03:00
|
|
|
vision("canvas") {
|
|
|
|
solid {
|
|
|
|
box(100, 100, 100)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-26 13:03:40 +03:00
|
|
|
makeVisionFile(content, resourceLocation = ResourceLocation.SYSTEM)
|
2021-01-12 12:52:22 +03:00
|
|
|
}
|