info.laht.threekt.geometries.TubeGeometry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wrapper Show documentation
Show all versions of wrapper Show documentation
kotlin wrappers for three.js (https://threejs.org/)
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
}