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

info.laht.threekt.geometries.TubeGeometry.kt Maven / Gradle / Ivy

The newest version!
package info.laht.threekt.geometries

import info.laht.threekt.core.BufferGeometry
import info.laht.threekt.core.Geometry
import info.laht.threekt.extras.core.Curve
import info.laht.threekt.math.Vector3

/**
 * Creates a tube that extrudes along a 3d curve.
 */
open external class TubeGeometry(

        path: Curve,
        tubularSegments: Int = definedExternally,
        radius: Number = definedExternally,
        radiusSegments: Int = definedExternally,
        closed: Boolean = definedExternally

) : Geometry {

    var tangents: Array
    var normals: Array
    var binormals: Array

}

/**
 * Creates a tube that extrudes along a 3d curve.
 */
open external class TubeBufferGeometry(

        path: Curve,
        tubularSegments: Int = definedExternally,
        radius: Number = definedExternally,
        radiusSegments: Int = definedExternally,
        closed: Boolean = definedExternally

) : BufferGeometry {

    val parameters: dynamic

    val tangents: Array
    val normals: Array
    val binormals: Array

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy