SimpleDynMeshBuilder > Simple Dyn Mesh Builder BPLibrary

Simple Dyn Mesh Builder BPLibrary

C++ library containing various math functions used for generating shapes

Nodes

Calculate Radians per Vertex Calculates the radians per vertex based on the number of verts in the polygon
Calculate Vertex Sin and Cos Calculates the Sine and Cosine values for a vertex at the given index based on the radians per vertex
Get Midpoint Gets the point in the middle of two given points
Get Polygon Side Midpoints Gets the midpoints for all sides of a polygon with the given vertices
Get Polygon Vertices Calculates the vertices for a polygon with the specified number of vertices
NOTE: This could be a Pure function, but is setup as an impure function to avoid accidental performance issues
WARNING: The number of vertices has a direct impact on performance when generating shapes. I would recommend avoiding anything much above 20 for 3D shapes that will be further manipulated (like a pyramid)
If the shape will be converted into a static mesh, you can use higher numbers, but may experience performance issues while editing the dyn mesh