All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.laht.threekt.objects.Points.kt Maven / Gradle / Ivy

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