Description
The ConstructFromPolygons
method is a member of the MapMesh
class within the Editor.MapDoc
namespace. This method is used to construct a mesh from a given set of polygonal data. It takes a single parameter of type Editor.MeshEditor.PrimitiveBuilder/PolygonMesh
, which represents the polygonal mesh data to be used for construction.
Usage
To use the ConstructFromPolygons
method, you need to have an instance of the MapMesh
class. You can then call this method on the instance, passing in a PolygonMesh
object that contains the polygonal data you wish to use for constructing the mesh.
Example
// Assuming 'mapMesh' is an instance of MapMesh and 'polygonMesh' is an instance of PolygonMesh
mapMesh.ConstructFromPolygons(polygonMesh);