Description
The ConstructFromPolygons
method is a member of the MapMesh
class within the Editor.MapDoc
namespace. This method is responsible for constructing a mesh from a given set of polygonal data. It takes a single parameter, mesh
, which is of type Editor.MeshEditor.PrimitiveBuilder.PolygonMesh
. This method does not return any value.
Usage
To use the ConstructFromPolygons
method, you need to have an instance of the MapMesh
class. You can then call this method by passing a PolygonMesh
object that contains the polygonal data you wish to use for constructing the mesh.
This method is typically used in the context of map editing within the Hammer editor, where you might want to programmatically define or modify the geometry of a map node.
Example
// Assuming 'mapMesh' is an instance of MapMesh and 'polygonMesh' is an instance of PolygonMesh
mapMesh.ConstructFromPolygons(polygonMesh);