Class Surfaces
- Namespace
- OpenMEPSandbox.Geometry
- Assembly
- OpenMEPSandbox.dll
Surface Manipulation
public class Surfaces
- Inheritance
-
Surfaces
- Inherited Members
Methods
DeconstructNurbsSurface(Surface)
Deconstruct a Surface as a NurbsSurface
[MultiReturn(new string[] { "CtrlPoints", "Weights", "KnotsU", "KnotsV", "DegreeU", "DegreeV", "NumberU", "NumberV" })]
public static Dictionary<string, object> DeconstructNurbsSurface(Surface surface)
Parameters
surface
SurfaceSurface
Returns
- Dictionary<string, object>
NurbsSurface control points
DeconstructPolySurface(PolySurface)
Deconstructs a polysurface into faces, edge curves, and points
[MultiReturn(new string[] { "Faces", "Points" })]
public static Dictionary<string, object> DeconstructPolySurface(PolySurface polysurface)
Parameters
polysurface
PolySurfacePolySurface
Returns
- Dictionary<string, object>
Face surfaces.
DeconstructSurface(Surface)
Deconstructs a surface into edge curves and points
[MultiReturn(new string[] { "Edges", "Points" })]
public static Dictionary<string, object> DeconstructSurface(Surface surface)
Parameters
surface
SurfaceSurface
Returns
- Dictionary<string, object>
Edge curves.
DivideSurfaceUV(Surface, int, int)
Divides a surface using UV divisions
[MultiReturn(new string[] { "Points", "Planes", "Normals", "Gaussian", "UParams", "VParams" })]
public static Dictionary<string, object> DivideSurfaceUV(Surface surface, int UDivision, int VDivision)
Parameters
Returns
- Dictionary<string, object>
A list of points
RebuildSurface(Surface, int, int)
Rebuild the Surface into desired U and V space
[MultiReturn(new string[] { "Rebuilt" })]
public static Dictionary<string, object?> RebuildSurface(Surface surface, int uDiv, int vDiv)
Parameters
surface
SurfaceSurface
uDiv
intNumber of U spans after rebuilding
vDiv
intNumber of V spans after rebuilding
Returns
- Dictionary<string, object>
Rebuilt surface
TransposeSurfaceUV(Surface)
Transpose the UV space of the surface
[MultiReturn(new string[] { "Transposed" })]
public static Dictionary<string, object> TransposeSurfaceUV(Surface surface)
Parameters
surface
SurfaceSurface
Returns
- Dictionary<string, object>
Transposed Surface