2021-03-07 16:19:43 +03:00
|
|
|
package space.kscience.visionforge.examples
|
2021-03-04 09:47:41 +03:00
|
|
|
|
2021-05-07 16:41:07 +03:00
|
|
|
import space.kscience.gdml.GdmlShowCase
|
2022-05-24 23:00:10 +03:00
|
|
|
import space.kscience.visionforge.Colors
|
|
|
|
import space.kscience.visionforge.gdml.gdml
|
2021-03-07 16:19:43 +03:00
|
|
|
import space.kscience.visionforge.solid.Solids
|
2022-05-24 23:00:10 +03:00
|
|
|
import space.kscience.visionforge.solid.ambientLight
|
|
|
|
import space.kscience.visionforge.solid.invoke
|
|
|
|
import space.kscience.visionforge.solid.solid
|
2021-03-04 09:47:41 +03:00
|
|
|
|
2022-01-20 11:13:17 +03:00
|
|
|
fun main() = makeVisionFile {
|
|
|
|
vision("canvas") {
|
|
|
|
requirePlugin(Solids)
|
2022-05-24 23:00:10 +03:00
|
|
|
solid {
|
|
|
|
ambientLight {
|
|
|
|
color(Colors.white)
|
|
|
|
}
|
|
|
|
gdml(GdmlShowCase.babyIaxo(), "D0")
|
|
|
|
}
|
2021-03-04 09:47:41 +03:00
|
|
|
}
|
|
|
|
}
|