InternalThe ComputePointerResponse containing Grasshopper output trees.
Optionaloptions: MeshExtractionOptionsConfiguration for mesh extraction and parsing behavior. All options are optional with sensible defaults.
Promise resolving to array of THREE.Mesh objects (may be empty).
Internal helper: high-level extraction remains public via visualization module, but this function is considered internal implementation detail for mesh extraction.
// Simple usage with defaults (all processing enabled)
const meshes = await getThreeMeshesFromComputeResponse(response);
// With debugging enabled
const meshes = await getThreeMeshesFromComputeResponse(response, { debug: true });
// With advanced options
const meshes = await getThreeMeshesFromComputeResponse(response, {
debug: true,
allowScaling: true,
allowAutoPosition: false,
parsing: {
mergeByMaterial: false,
applyTransforms: true,
debug: true,
},
});
Extracts and processes display meshes from a ComputePointerResponse using the Grasshopper WebDisplay component.
This is the primary entry point for extracting mesh geometry from Grasshopper compute responses. It handles all aspects of mesh processing: decompression, coordinate transformation, scaling, and positioning.
Note: Mesh decompression happens asynchronously in a Web Worker to prevent UI blocking.