Interface ShellRepParams

Parameters for creating a shell representation set in a SceneModel.

The created representation set has two representations:

  • a detailed representation referencing the supplied source SceneObjects
  • a shell representation referencing one generated shell SceneObject

All referenced SceneObjects belong to the same SceneModel. The helper does not create cross-model representation sets.

interface ShellRepParams {
    detailedRange?: SceneRepRangeParams;
    detailedRepId?: string;
    generation?: ShellGenerationParams;
    generator?: ShellGenerator;
    id: string;
    model: SceneModel;
    objectIds: string[];
    selection?: SceneRepSetSelectionParams;
    shellColor?: Vec3;
    shellGeometryId?: string;
    shellMaterialId?: string;
    shellMeshId?: string;
    shellObjectId?: string;
    shellOpacity?: number;
    shellRange?: SceneRepRangeParams;
    shellRepId?: string;
}

Properties

detailedRange?: SceneRepRangeParams

Projected-size range for the detailed representation.

detailedRepId?: string

ID for the detailed representation.

Default is "detailed".

Shell generation settings.

generator?: ShellGenerator

Optional shell generator. Defaults to a new ShellGenerator.

id: string

Representation set ID to create.

model: SceneModel

SceneModel that owns the source objects, generated shell object and resulting representation set.

objectIds: string[]

Source SceneObject IDs for the detailed representation.

Declarative selection hints for the created representation set.

shellColor?: Vec3

Shell material/mesh color.

Default is [0.72, 0.76, 0.78].

shellGeometryId?: string

ID for the generated shell geometry.

Default is "shellGeometry:${id}".

shellMaterialId?: string

ID for the shell material.

Default is "shellMaterial".

shellMeshId?: string

ID for the generated shell mesh.

Default is "shellMesh:${id}".

shellObjectId?: string

ID for the generated shell SceneObject.

Default is "shellObject:${id}".

shellOpacity?: number

Shell material/mesh opacity.

Default is 1.

shellRange?: SceneRepRangeParams

Projected-size range for the shell representation.

shellRepId?: string

ID for the shell representation.

Default is "shell".