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 '@selvajs/compute/grasshopper';const client = new GrasshopperClient({ serverUrl: 'http://localhost:8081' });const result = await client.solve(definitionUrl, dataTree); Copy
import { GrasshopperClient } from '@selvajs/compute/grasshopper';const client = new GrasshopperClient({ serverUrl: 'http://localhost:8081' });const result = await client.solve(definitionUrl, dataTree);
import { solveGrasshopperDefinition } from '@selvajs/compute/grasshopper';const result = await solveGrasshopperDefinition(dataTree, definition, { serverUrl: 'http://localhost:8081'}); Copy
import { solveGrasshopperDefinition } from '@selvajs/compute/grasshopper';const result = await solveGrasshopperDefinition(dataTree, definition, { serverUrl: 'http://localhost:8081'});
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