![JAR search and dependency download from the Maven repository](/logo.png)
org.treblereel.gwt.three4g.geometries.TubeGeometry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of three4g Show documentation
Show all versions of three4g Show documentation
Three.js JsInterop based library for GWT
The newest version!
package org.treblereel.gwt.three4g.geometries;
import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsType;
import org.treblereel.gwt.three4g.core.Geometry;
import org.treblereel.gwt.three4g.extras.core.Curve;
import org.treblereel.gwt.three4g.geometries.parameters.TubeGeometryParameters;
import org.treblereel.gwt.three4g.math.Vector3;
/**
* Creates a tube that extrudes along a 3d curve.
*
* @author Dmitrii Tikhomirov
* Created by treblereel on 4/11/18.
*/
@JsType(isNative = true, namespace = "THREE")
public class TubeGeometry extends Geometry {
/**
* An object with all of the parameters that were used to generate the geometry
*/
public TubeGeometryParameters parameters;
/**
* An array of Vector3 tangents
*/
public Vector3[] tangents;
/**
* An array of Vector3 normals
*/
public Vector3[] normals;
/**
* An array of Vector3 binormals
*/
public Vector3[] binormals;
/**
* @param path — Curve - A path that inherits from the Curve base class
* @param tubularSegments — Integer - The number of segments that make up the tube, default is 64
* @param radius — Float - The radius of the tube, default is 1
* @param radialSegments — Integer - The number of segments that make up the cross-section, default is 8
* @param closed — Boolean Is the tube open or closed, default is false
*/
@JsConstructor
public TubeGeometry(Curve path, int tubularSegments, float radius, int radialSegments, boolean closed) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy