info.laht.threekt.objects.Points.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Port of the three.js 3D javascript library for Kotlin/JVM
The newest version!
package info.laht.threekt.objects
import info.laht.threekt.core.*
import info.laht.threekt.materials.Material
import info.laht.threekt.materials.PointsMaterial
import info.laht.threekt.math.Matrix4
import info.laht.threekt.math.Ray
import info.laht.threekt.math.Sphere
class Points(
override var geometry: BufferGeometry = BufferGeometry(),
override var material: Material = PointsMaterial()
) : Object3DImpl(), GeometryObject, MaterialObject {
private val raycastHelper by lazy { RaycastHelper() }
override fun raycast(raycaster: Raycaster, intersects: MutableList) {
with(raycastHelper) {
}
TODO()
}
override fun clone(): Points {
return Points(geometry, material).copy(this, true) as Points
}
private inner class RaycastHelper {
val inverseMatrix = Matrix4()
val ray = Ray()
val sphere = Sphere()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy