提交 a61d0609 编写于 作者: Z zz85

Passes curveSegments to Shape.extractPoints() #2669

上级 0a719bab
......@@ -134,7 +134,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
var shapesOffset = this.vertices.length;
var shapePoints = shape.extractPoints();
var shapePoints = shape.extractPoints( curveSegments );
var vertices = shapePoints.shape;
var holes = shapePoints.holes;
......
......@@ -52,6 +52,7 @@ THREE.ShapeGeometry.prototype.addShapeList = function ( shapes, options ) {
THREE.ShapeGeometry.prototype.addShape = function ( shape, options ) {
if ( options === undefined ) options = {};
var curveSegments = options.curveSegments !== undefined ? options.curveSegments : 12;
var material = options.material;
var uvgen = options.UVGenerator === undefined ? THREE.ExtrudeGeometry.WorldUVGenerator : options.UVGenerator;
......@@ -63,7 +64,7 @@ THREE.ShapeGeometry.prototype.addShape = function ( shape, options ) {
var i, l, hole, s;
var shapesOffset = this.vertices.length;
var shapePoints = shape.extractPoints();
var shapePoints = shape.extractPoints( curveSegments );
var vertices = shapePoints.shape;
var holes = shapePoints.holes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册