|
@@ -1,10 +1,12 @@
|
|
|
import { BufferGeometry } from '../core/BufferGeometry.js';
|
|
|
import { Float32BufferAttribute } from '../core/BufferAttribute.js';
|
|
|
+import { Shape } from '../extras/core/Shape.js';
|
|
|
import { ShapeUtils } from '../extras/ShapeUtils.js';
|
|
|
+import { Vector2 } from '../math/Vector2.js';
|
|
|
|
|
|
class ShapeGeometry extends BufferGeometry {
|
|
|
|
|
|
- constructor( shapes, curveSegments = 12 ) {
|
|
|
+ constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( - 0.5, - 0.5 ), new Vector2( 0.5, - 0.5 ) ] ), curveSegments = 12 ) {
|
|
|
|
|
|
super();
|
|
|
this.type = 'ShapeGeometry';
|