threejs-geometries
>-
>-
ALWAYS use this skill when the user mentions:
BufferGeometry, attributes, index buffers, draw rangesInstancedBufferAttribute / InstancedMesh geometry side (threejs-objects for mesh wrapper)Shape along paths, TubeGeometry, LatheGeometry, ExtrudeGeometryIMPORTANT: geometries vs math
Box3, Sphere, Ray tests without mesh topology.Trigger phrases include:
BufferGeometry, set position, normal, uv, optional index; compute bounding volumes for culling.InstancedMesh patterns in threejs-objects.Shape/Path, extrude or lathe per docs; consult Extras Curve family for path sampling.See examples/workflow-extrude-shape.md.
| Docs section | Representative links | |--------------|----------------------| | Core | https://threejs.org/docs/BufferGeometry.html | | Geometries | https://threejs.org/docs/BoxGeometry.html | | Extrude | https://threejs.org/docs/ExtrudeGeometry.html | | Shape | https://threejs.org/docs/Shape.html |
Primitives and BufferGeometry live under Geometries and BufferGeometry in three.js docs. Curve, Shape, and extrusion APIs appear under Extras and Geometries—Addons Curves / Geometries document NURBS and text meshes; link those instead of copying long signatures.
When answering under this skill, prefer responses that:
BufferGeometry, a primitive, or ExtrudeGeometry / Shape as appropriate.InstancedMesh patterns.BufferGeometryUtils (Addons Utils) only by name + docs link when merging/splitting.dispose() when replacing large custom buffers.English: buffergeometry, extrude, shape, path, curve, primitives, instancing, three.js
中文: 几何体、BufferGeometry、挤出、Shape、曲线、实例化、three.js
确保开发环境已安装必要的依赖和工具。
根据项目需求进行基础配置。
按照示例代码实现核心功能。
运行测试确保功能正常。
完成开发后进行部署和监控。