Selva Compute API Reference - v1.1.2
    Preparing search index...

    Module grasshopper

    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);
    import { solveGrasshopperDefinition, normalizeComputeConfig } from 'selva-compute/grasshopper';

    const config = normalizeComputeConfig({ serverUrl: 'http://localhost:8081' });
    const result = await solveGrasshopperDefinition(dataTree, definition, config);

    Modules

    <internal>

    Classes

    GrasshopperClient
    GrasshopperResponseProcessor
    TreeBuilder

    Interfaces

    BooleanInputType
    DataItem
    DataTree
    FileInputType
    GeometryInputType
    GetValuesOptions
    GetValuesResult
    GrasshopperComputeConfig
    GrasshopperComputeResponse
    GrasshopperParsedIO
    GrasshopperParsedIORaw
    GrasshopperRequestSchema
    InputParamSchema
    NumericInputType
    OutputParamSchema
    ParsedContext
    TextInputType
    ValueListInputType

    Type Aliases

    DataTreeDefault
    DataTreePath
    DataTreeValue
    DefaultValue
    FileBaseInfo
    FileData
    InnerTreeData
    InputParam
    OutputType
    ProcessedFile

    Functions

    downloadFileData
    extractFilesFromComputeResponse
    fetchDefinitionIO
    fetchParsedDefinitionIO
    processInput
    processInputs
    solveGrasshopperDefinition

    References

    ComputeConfig → ComputeConfig
    RhinoComputeError → RhinoComputeError
    RhinoModelUnit → RhinoModelUnit