2021-03-07 16:19:43 +03:00
|
|
|
package space.kscience.visionforge.examples
|
2021-03-04 09:47:41 +03:00
|
|
|
|
2021-05-05 15:28:06 +03:00
|
|
|
import space.kscience.dataforge.context.Context
|
2021-05-07 16:41:07 +03:00
|
|
|
import space.kscience.gdml.GdmlShowCase
|
2021-03-07 16:19:43 +03:00
|
|
|
import space.kscience.visionforge.gdml.toVision
|
2021-07-10 16:51:57 +03:00
|
|
|
import space.kscience.visionforge.html.ResourceLocation
|
2021-03-07 16:19:43 +03:00
|
|
|
import space.kscience.visionforge.solid.Solids
|
2021-03-04 09:47:41 +03:00
|
|
|
|
2021-05-05 15:28:06 +03:00
|
|
|
fun main() {
|
|
|
|
val context = Context {
|
|
|
|
plugin(Solids)
|
|
|
|
}
|
2021-05-07 18:24:36 +03:00
|
|
|
|
2021-07-10 16:51:57 +03:00
|
|
|
context.makeVisionFile(resourceLocation = ResourceLocation.EMBED) {
|
2021-05-08 23:14:15 +03:00
|
|
|
vision("canvas") { GdmlShowCase.babyIaxo().toVision() }
|
2021-03-04 09:47:41 +03:00
|
|
|
}
|
|
|
|
}
|