Closed donmccurdy closed 8 months ago
Converts primitives from LINE_STRIP or LINE_LOOP to LINES, or from TRIANGLE_STRIP or TRIANGLE_FAN to TRIANGLES. Examples:
import { convertPrimitiveToLines, convertPrimitiveToTriangles } from '@gltf-transform/functions'; // input: LINE_STRIP or LINE_LOOP convertPrimitiveToLines(prim); // input: TRIANGLE_STRIP or TRIANGLE_FAN convertPrimitiveToTriangles(prim);
Related:
Remaining
main
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @donmccurdy and the rest of your teammates on Graphite
Converts primitives from LINE_STRIP or LINE_LOOP to LINES, or from TRIANGLE_STRIP or TRIANGLE_FAN to TRIANGLES. Examples:
Related:
Remaining