shape - firtoz/react-three-renderer GitHub Wiki
Wiki » Internal Components » Shapes » shape
shape
Creates a THREE.Shape
Place this within <extrudeGeometry>, <shapeGeometry>, or <resources>.
Attributes
points
array of THREE.Vector2
Default: []
resourceId
string: The resource id of this object, only used if it is placed into resources.
Default: ''
Children:
- moveTo: Calls THREE.Path#moveTo on the parent shape
- lineTo: Calls THREE.Path#lineTo on the parent shape
- bezierCurveTo: Calls THREE.Path#bezierCurveTo on the parent shape
- quadraticCurveTo: Calls THREE.Path#quadraticCurveTo on the parent shape
- absArc: Calls THREE.Path#absArc on the parent shape
- absEllipse: Calls THREE.Path#absEllipse on the parent shape
- splineThru: Calls THREE.Path#splineThru on the parent shape
- hole: Adds a hole into a parent shape, see THREE.Shape#holes
Notes:
This component can be added into <resources/>! See Resource Types for more information.
===
| View Source |
|---|