2021-03-07 16:19:43 +03:00
|
|
|
package space.kscience.visionforge.examples
|
2021-01-12 12:52:22 +03:00
|
|
|
|
2021-05-05 15:28:06 +03:00
|
|
|
import space.kscience.dataforge.context.Context
|
2021-03-07 16:19:43 +03:00
|
|
|
import space.kscience.visionforge.html.ResourceLocation
|
|
|
|
import space.kscience.visionforge.solid.Solids
|
|
|
|
import space.kscience.visionforge.solid.box
|
|
|
|
import space.kscience.visionforge.solid.solid
|
2021-01-12 12:52:22 +03:00
|
|
|
|
2021-05-05 15:28:06 +03:00
|
|
|
fun main() {
|
|
|
|
val context = Context {
|
|
|
|
plugin(Solids)
|
|
|
|
}
|
|
|
|
|
|
|
|
context.makeVisionFile(resourceLocation = ResourceLocation.SYSTEM){
|
2021-01-12 12:52:22 +03:00
|
|
|
vision("canvas") {
|
|
|
|
solid {
|
|
|
|
box(100, 100, 100)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|