The M_Mesh3D class represents a 3D object in a Mesh3DLayer.
Completely empties the mesh of all points, faces, materials, etc.
Return value: noneSet the default color for faces with no assigned material.
Return value: none col (rgb_color): default face colorGet the default color for faces with no assigned material.
Return value (rgb_color): default face colorSet the edge color.
Return value: none col (rgb_color): edge colorGet the edge color.
Return value (rgb_color): edge colorSet whether front-facing 3D faces are aligned clockwise or counter-clockwise.
Return value: none b (bool): true for clockwise, false for counter-clockwiseTest whether front-facing 3D faces are aligned clockwise or counter-clockwise.
Return value (bool): true for clockwise, false for counter-clockwiseReturns the number of points in the mesh.
Return value (int): number of pointsGet the position of a point in the mesh.
Return value (LM_Vector3): point location id (int): point identifierAdd a new point to the mesh.
Return value: none vec (LM_Vector3): point locationRemove a point from the mesh.
Return value: none id (int): point identifierChange an existing point's position.
Return value: none id (int): point identifier vec (LM_Vector3): new positionReturn the number of texture coordinates.
Return value (int): the number of texture coordinatesGet the value of a texture coordinate.
Return value (LM_Vector2): the value of a texture coordinate id (int): texture coordinate identifierAdd a new texture coordinate.
Return value: none vec (LM_Vector2): the value of the new texture coordinateRemove a texture coordinate from the mesh.
Return value: none id (int): texture coordinate identifierReturn the number of faces in the 3D mesh.
Return value (int): the number of facesGet the properties of a particular face in the mesh.
Return value (M_Face3D): a face in the mesh id (int): face identifierAdd a new three-sided face to the mesh.
Return value: none p1 (int): first corner point p2 (int): second corner point p3 (int): third corner pointAdd a new four-sided face to the mesh.
Return value: none p1 (int): first corner point p2 (int): second corner point p3 (int): third corner point p4 (int): fourth corner pointDelete a face from the mesh.
Return value: none id (int): face identifierReturns the number of materials in the mesh.
Return value (int): number of materialsGets the properties for a given material.
Return value (M_Material3D): a material in the mesh id (int): material identifierCreates a new material in the mesh.
Return value (M_Material3D): the properties of the new materialAdds a material to the mesh.
Return value: none m (M_Material3D): material to addDeletes a material from the mesh.
Return value: none id (int): material identifierScale an entire mesh to fit a given radius. The larger dimension in X, Y, or Z will be scaled to fit this radius, and the other dimensions will scale to maintain the correct proportions. Scaling to a radius of 1.0 is a quick way to make sure that very large or very small 3D models fit the Moho workspace in a reasonable way.
Return value: none r (float): radius to scale to