SolidModelsProfile

new Cesium.SolidModelsProfile(scene)

The solid model section class.
Name Type Description
scene Object optional The scene where the solid model is sectioning.
Throws:
Example:
var solidModelsProfile = new Cesium.SolidModelsProfile(scene);

Members

addedEvent

Event triggered after the model added by the addModels function is loaded

clippingType : Number

Gets or sets the cutting method of sectioning, whether it is internal or external, and the default is external.
Default Value: KeepInside

mixColorType : Number

Used to specify the color mixing mode.

readonlyselectedModelIDs : Array

Get the id of the selected model on the section.

volume : Object

Gets or sets the voxel raster dataset cache.

Methods

addModels(models)

Add a solid model.
Name Type Description
models Array The model to be added is an array type. Its element structure is:
Name Type Description
Id:id String The ID of the element, a value greater than or equal to 0 and cannot be repeated
model:modelUrl String Address of the data service being sliced
texture:imageUrl String optional Texture address used on model section plane
textureMapParameter:{Utiling:1.0 Vtiling:1.0} Array optional Texture mapping parameters. Among them, Utiling represents the actual size of the texture in the U direction in meters, and Vtiling represents the actual size of the texture in the V direction in meters.
color:Cesium.Color Color optional The color used on the section plane, if the texture has been specified, the texture will be used first.

addProfileGeometry(geometry)

Add geometry for edge banding.
Name Type Description
geometry Array/Object The geometry added for edge banding supports four types: (1) An array of vertex coordinates, used to set the plane of edge sealing; (2) GeoCylinder object, using a cylinder as an edge banding analysis object, which can be used for drilling analysis; (3), GeoRegion3D object, use the bottom surface of the three-dimensional GeoRegion3D object to seal the edges. (4) GeoBox object, use GeoBox object to seal the edges.

build()

Perform a section analysis. After setting the addModels and addProfilePlane methods, execute this method for section analysis. At this time, the cut model will no longer be displayed, and only the cut surface of the model will be displayed in the scene. If you need to modify the section plane or the sectioned model after executing the build method, you need to execute clear first, and then execute build.

clear()

Clear the section analysis results.

clearProfile()

The section analysis result is cleared, but the sectioned model objects will not be cleared.

setClipGeometry(geometry)

Set the geometry used for sectioning. Can be GeographicRegion3D
Name Type Description
geometry Array/Object The geometry added for sectioning supports four types: (1), vertex coordinate array, used to set the cutting plane; (2), GeoCylinder object, use a cylinder as a section analysis object; (3) The GeoRegion3D object is cut with the bottom surface of the 3D GeoRegion3D object. (4), GeoBox object, use GeoBox object to cut.