ClipPlaneAPI#
Interface ClipPlaneAPI
Hierarchy
- ClipPlaneAPI
Methods
change Clip Plane
- change
Clip Plane(clipPlaneId: number, properties: ClipPlaneProperties): ClipPlaneProperties -
Parameters
-
clipPlaneId: number
The id of the clip plane you want to change.
-
properties: ClipPlaneProperties
The properties of the clip plane you want change.
Returns ClipPlaneProperties
An Object with the changed Properties.
-
- change
Clip Plane(clipPlaneID: number, normal?: Float32Array | number[], point?: Float32Array | number[], name?: string, thickness?: number, tangent?: Float32Array | number[], disabled?: boolean, invisible?: boolean, exclusive?: boolean): void -
Changes the properties of the clip plane defined by the clipPlaneID with the optional parameters normal, points and name.
Deprecated
Calling changeClipPlane with single parameters is deprecated, please use ClipPlaneProperties instead.
Parameters
-
clipPlaneID: number
The ID of an existing clip plane which should be changed
-
Optional
normal: Float32Array | number[]The new normal of the clip plane
-
Optional
point: Float32Array | number[]An arbitrary new point in space which lies on the clip plane
-
Optional
name: stringThe new name for the clip plane
-
Optional
thickness: numberThe thickness for the clip plane
-
Optional
tangent: Float32Array | number[]The tangent of the clip plane
-
Optional
disabled: booleanThe enabled state of the clip plane
-
Optional
invisible: booleanInvisible on the UI
-
Optional
exclusive: booleanset the exclusive flag to clip geometry when using exclusiveClipplanes property
Returns void
-
change Clipping Room
- change
Clipping Room(properties?: ClipRoomProperties): ClipRoomProperties -
Changes one or more properties of the clip room.
Parameters
-
Optional
properties: ClipRoomPropertiesThe properties of the clip room you want change.
Returns ClipRoomProperties
An object with the changed properties.
-
- change
Clipping Room(name?: string, size?: Float32Array | number[], transformation?: Float32Array | number[], disabled?: boolean, invisible?: boolean): ClipRoomProperties -
Deprecated
Calling changeClippingRoom with single parameters is deprecated, please use ClipRoomProperties instead.
Changes one or more properties of the clip room.
Parameters
-
Optional
name: stringThe name of the clip room.
-
Optional
size: Float32Array | number[]The size of the clip room.
-
Optional
transformation: Float32Array | number[]The transformation of the clip room.
-
Optional
disabled: booleanThe disabled state of the clip room.
-
Optional
invisible: booleanThe invisible state of the clip room.
Returns ClipRoomProperties
An object with the changed properties.
-
clip Other Parts
create Capping
- create
Capping(clipPlaneId: number): Promise<void> Experimental
Generates capping geometry for the surface that is cut by the clip plane. The generated surfaces allow measurements and all other operations which can be performed on usual geometry.
Parameters
-
clipPlaneId: number
the id of the clip plane
Returns Promise<void>
-
create Clip Plane
- create
Clip Plane(properties?: ClipPlaneProperties): number -
Creates a new clip plane.
Parameters
-
Optional
properties: ClipPlanePropertiesInitial properties of the created clip plane.
Returns number
The id of the newly created clip plane.
-
- create
Clip Plane(normal?: Float32Array | number[], point?: Float32Array | number[], name?: string, thickness?: number, tangent?: Float32Array | number[], disabled?: boolean, invisible?: boolean, exclusive?: boolean): number -
Creates a clip plane defined by the plane’s normal, positioned at an optional point (otherwise at the world space origin) and an optional name. Returns the ID of the clip plane.
Deprecated
Calling createClipPlane with single parameters is deprecated, please use ClipPlaneProperties instead.
Parameters
-
Optional
normal: Float32Array | number[]The normal of the clip plane
-
Optional
point: Float32Array | number[]An arbitrary point in space which lies on the clip plane
-
Optional
name: stringThe name of the clip plane
-
Optional
thickness: numberThe thickness of the clip plane
-
Optional
tangent: Float32Array | number[]The tangent of the clip plane
-
Optional
disabled: booleanThe state of the clip plane
-
Optional
invisible: booleanInvisible on the UI
-
Optional
exclusive: booleanset the exclusive flag to clip geometry when using exclusiveClipplanes property
Returns number
The ID of the newly created clip plane
-
create Clipping Room
- create
Clipping Room(properties?: ClipRoomProperties): void -
Creates a new clip room.
Parameters
-
Optional
properties: ClipRoomPropertiesInitial properties of the created clip room.
Returns void
-
- create
Clipping Room(name?: string, size?: Float32Array | number[], transformation?: Float32Array | number[], disabled?: boolean, invisible?: boolean): void -
Deprecated
Calling createClippingRoom with single parameters is deprecated, please use ClipRoomProperties instead.
Creates a new clip room.
Parameters
-
Optional
name: stringThe name of the clip room.
-
Optional
size: Float32Array | number[]The size of the clip room.
-
Optional
transformation: Float32Array | number[]The transformation of the clip room.
-
Optional
disabled: booleanThe disabled state of the clip room.
-
Optional
invisible: booleanThe invisible state of the clip room.
Returns void
-
disable Capping
enable Capping
get Clip Planes
get Clip Room
remove Capping
remove Clip Plane
remove Clipping Room
request Clip Plane Data
- request
Clip Plane Data(clipPlaneId: number): Promise<ClipPlaneProperties> -
Returns the ClipPlaneData for the specified clip plane id.
Parameters
-
clipPlaneId: number
The id of the clip plane you want to request the data for.
Returns Promise<ClipPlaneProperties>
The requested clip plane data.
-
request Clip Room Data
- request
Clip Room Data(): Promise<ClipRoomProperties> -
Returns the ClipRoomData.
Returns Promise<ClipRoomProperties>
The requested clip room data.
Changes one or more properties of a clip plane with the specified id.