new H3DU.CurveTube(func, [thickness], [sweptCurve])
A surface evaluator object for a tube extruded from a parametric curve.
This class is considered a supplementary class to the Public Domain HTML 3D Library and is not considered part of that library.
A curve evaluator object that describes the 3-dimensional curve to extrude a tube from. For best results, the curve should be continuous and smooth.
thickness(Type: number) (optional)
Radius of the extruded tube. If this parameter is null, undefined, or omitted, the default is 0.125.
sweptCurve(Type: Object) (optional)
A curve evaluator object that describes a two-dimensional curve to serve as the cross section of the extruded shape. The curve need not be closed. If this parameter is null, undefined, or omitted, uses a circular cross section in which the V coordinate ranges from 0 through 1. The cross section will generally have a radius of 1 unit; bigger or smaller cross sections will affect the meaning of the "thickness" parameter.