|
@@ -16,7 +16,8 @@
|
|
|
* bevelSize: <float>, // how far from text outline is bevel
|
|
|
* bevelSegments: <int>, // number of bevel layers
|
|
|
*
|
|
|
- * extrudePath: <THREE.CurvePath> // 2d/3d spline path to extrude shape orthogonality to
|
|
|
+ * extrudePath: <THREE.CurvePath> // 3d spline path to extrude shape along. (creates Frames if .frames aren't defined)
|
|
|
+ * frames: <THREE.TubeGeometry.FrenetFrames> // containing arrays of tangents, normals, binormals
|
|
|
* bendPath: <THREE.CurvePath> // 2d path for bend the shape around x/y plane
|
|
|
*
|
|
|
* material: <int> // material index for front and back faces
|
|
@@ -109,7 +110,10 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) {
|
|
|
|
|
|
// Reuse TNB from TubeGeomtry for now.
|
|
|
// TODO1 - have a .isClosed in spline?
|
|
|
- splineTube = new THREE.TubeGeometry.FrenetFrames(extrudePath, steps, false);
|
|
|
+
|
|
|
+ splineTube = options.frames !== undefined ?
|
|
|
+ options.frames :
|
|
|
+ new THREE.TubeGeometry.FrenetFrames(extrudePath, steps, false);
|
|
|
|
|
|
// console.log(splineTube, 'splineTube', splineTube.normals.length, 'steps', steps, 'extrudePts', extrudePts.length);
|
|
|
|