Grasshopper-specific compute functionality
This module provides both high-level and low-level APIs for working with Grasshopper definitions and Rhino Compute servers.
import { GrasshopperClient } from 'selva-compute/grasshopper';const client = new GrasshopperClient({ serverUrl: 'http://localhost:8081' });const result = await client.solve(definitionUrl, dataTree); Copy
import { GrasshopperClient } from 'selva-compute/grasshopper';const client = new GrasshopperClient({ serverUrl: 'http://localhost:8081' });const result = await client.solve(definitionUrl, dataTree);
import { solveGrasshopperDefinition, normalizeComputeConfig } from 'selva-compute/grasshopper';const config = normalizeComputeConfig({ serverUrl: 'http://localhost:8081' });const result = await solveGrasshopperDefinition(dataTree, definition, config); Copy
import { solveGrasshopperDefinition, normalizeComputeConfig } from 'selva-compute/grasshopper';const config = normalizeComputeConfig({ serverUrl: 'http://localhost:8081' });const result = await solveGrasshopperDefinition(dataTree, definition, config);
Grasshopper-specific compute functionality
This module provides both high-level and low-level APIs for working with Grasshopper definitions and Rhino Compute servers.
Example: High-level usage
Example: Low-level usage