RhinoCommon API
MeshCreateFromPlane Method |
Constructs a planar mesh grid.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0

public static Mesh CreateFromPlane( Plane plane, Interval xInterval, Interval yInterval, int xCount, int yCount )
Public Shared Function CreateFromPlane ( plane As Plane, xInterval As Interval, yInterval As Interval, xCount As Integer, yCount As Integer ) As Mesh
Parameters
- plane
- Type: Rhino.GeometryPlane
Plane of mesh. - xInterval
- Type: Rhino.GeometryInterval
Interval describing size and extends of mesh along plane x-direction. - yInterval
- Type: Rhino.GeometryInterval
Interval describing size and extends of mesh along plane y-direction. - xCount
- Type: SystemInt32
Number of faces in x-direction. - yCount
- Type: SystemInt32
Number of faces in y-direction.
Return Value
Type: Mesh[Missing <returns> documentation for "M:Rhino.Geometry.Mesh.CreateFromPlane(Rhino.Geometry.Plane,Rhino.Geometry.Interval,Rhino.Geometry.Interval,System.Int32,System.Int32)"]

Exception | Condition |
---|---|
ArgumentException | Thrown when plane is a null reference. |
ArgumentException | Thrown when xInterval is a null reference. |
ArgumentException | Thrown when yInterval is a null reference. |
ArgumentOutOfRangeException | Thrown when xCount is less than or equal to zero. |
ArgumentOutOfRangeException | Thrown when yCount is less than or equal to zero. |
