Solid model section class.
Name | Type | Description |
---|---|---|
scene |
Object | optional The scene where the solid model is cut. |
Throws:
-
DeveloperError : scene are required.
Example:
var solidModelsProfile = new SuperMap3D.SolidModelsProfile(scene);
Members
-
The event triggered after the model added by the addModels function is loaded
-
Get or set the cropping method of sectioning, whether it is internal cropping or external cropping,The default is outer cropping.
-
Default Value:
KeepInside
-
mixColorType : MixColorType
-
Used to specify the color blending mode.
-
Get the id of the selected model on the section.
-
Get or set voxel raster dataset cache.
Methods
-
Add solid models.
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, which is a value greater than or equal to 0 and cannot be repeated model:modelUrl
String The address of the sliced data service texture:imageUrl
String optional The texture address used on the cut plane of the model textureMapParameter:{Utiling:1.0 Vtiling:1.0}
Array optional Texture mapping parameters. Among them, Utiling indicates the actual size of the texture in the U direction in meters, and Vtiling indicates the actual size of the texture in the V direction. color:SuperMap3D.Color
Color optional The color to use on the cut plane, preferring the texture if one has been specified。 -
Add geometry for edge banding.
Name Type Description geometry
Array/Object Added geometry for edge banding, supports four types: (1), vertex coordinate array, used to set the plane of edge banding; (2), GeoCylinder object, use a cylinder as the edge analysis object, which can be used for drilling analysis; (3) For the GeoRegion3D object, use the bottom surface of the three-dimensional GeoRegion3D object to seal the edge. (4), GeoBox object, use GeoBox object to seal the edge. -
Perform sectioning 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 plane 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.
-
Clears the sectioning analysis results.
-
Clears the section analysis results, but does not clear the sectioned model objects.
-
Sets the geometry used for sectioning. Can be a GeographicRegion3D
Name Type Description geometry
Array/Object Added geometry 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 three-dimensional GeoRegion3D object. (4), GeoBox object, cut with GeoBox object. (5), support GeoModel object