Multiplatform bindings for GDML geometry specification. Utilized kotlinx.serialization to read and writing GDML configurations.
In future it is possible to add additional module to launch GEANT4 simulations from Kotlin code.
The artifacts could be accessed via following configurations:
repository{
jcenter()
maven("https://dl.bintray.com/mipt-npm/scientifik")
maven("https://dl.bintray.com/pdvrieze/maven")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
//for multiplatform with gradle-metadata:
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api("scientifik:gdml:0.1.3")
}
}
}
}
//for jvm
dependencies {
api("scientifik:gdml-jvm:0.1.3")
}
Read:
import scientifik.gdml.parse
val gdmlString: String
val gdml = GDML.parse(gdmlString)
write:
import scientifik.gdml.stringify
val gdml = GDML{}
val gdmlString = gdml.stringify()