Mesh modifications enable you to remove areas of integrated mesh scene layers and the elevation surface. There are two different ways to remove parts of the integrated mesh layers: by hiding content inside the specified polygons (referred to as clip
); or by hiding content outside the specified polygons (referrred to as mask
). You can add multiple mesh modifications to an ArcGISMesh
. Once you have set up the ArcGISMesh
with all mesh modifications you want to make, you can set it on an ArcGISIntegrated
and ArcGISMap
.
Illustration | Modification | Description |
---|---|---|
![]() | clip removes the specified area | Clip-out areas of integrated mesh scene layers to show other layers or actors in the area. For example, you can place custom buildings and landscapes in the area and combine with spatial data. |
![]() | mask displays only content within the specified area | Define an area of interest with a polygon geometry to render only the area of the integrated mesh layer that falls inside the polygon. For example, if you want to show only an area of an integrated mesh within the boundaries of a city. |
Polygons used to specify the area for mesh modification must have a spatial reference that matches the spatial reference of the ArcGIS Map. See global or local and When you need to know about spatial references topics to understand more about the spatial reference of the ArcGIS Map.
Apply mesh modification to layers
Create a polygon using ArcGISPolygon
with a spatial reference matching the spatial reference of your ArcGIS Map. When you want to use the polygon for mesh modifications, get the geometry using the T
method.
Each ArcGISMesh
requires an ArcGISPolygon
and ArcGISMesh
value of Clip
or Mask
.
Each integrated mesh scene layer and terrain can have multiple mesh modifications. Put all mesh modifications you want to apply to a specific layer or terrain into ArcGISMesh
, then set the ArcGISMesh
on the layer. For the terrain, set the mesh modification to the ArcGISMap
.
- To create a polygon, use Create ArcGIS Polygon Builder from Spatial Reference node and set the spatial reference with Create ArcGIS Spatial Reference according to your ArcGIS Map's spatial reference. Create a geometry with To Geometry function of the ArcGIS Geometry Builder.
- To configure a mesh modification, use Create ArcGIS Mesh Modification node, provide a polygon, and set the modification type,
Clip
orMask
. - Register all mesh modifications that you want to apply to a layer or the terrain to ArcGIS Mesh Modification Collection with the Add node.
- To apply mesh modifications, use Set Mesh Modifications node for ArcGIS Integrated Mesh Layer or ArcGIS Map Elevation accordingly and provide the ArcGIS Mesh Modification Collection that you want to apply.
Example: