ReadonlyfaceIndex of face in Brep.Faces array.
ReadonlyhasReturns true if the Brep.TryConvertBrep function will be successful for this object
ReadonlyhasGets true if this class has any custom information attached to it through UserData.
Gets or sets the persistent id of this Brep face. By default, the id is Guid.Zero. Note, Rhino does not set this id. Thus, the property is available for use as a way of tracking Brep faces.
Readonlyistrue if object can be accurately modified with "squishy" transformations like projections, shears, and non-uniform scaling.
ReadonlyisGets a values indicating whether a surface is solid.
ReadonlyisGets a value indicating whether the face is synonymous with the underlying surface. If a Face has no trimming curves then it is considered a Surface.
ReadonlyisTests an object to see if it is valid.
ReadonlyloopsLoops in this face.
This face's rendering material channel index.
ReadonlyobjectUseful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on.
true if face orientation is opposite of natural surface orientation.
ReadonlyouterEvery face has a single outer loop.
If per-face color is "Empty", then this face does not have a custom color
ReadonlysurfaceSurface index of the 3d surface geometry used by this face or -1
ReadonlyuserGets the amount of user strings.
If this piece of geometry is a component in something larger, like a BrepEdge in a Brep, then this function returns the component index.
This object's component index. If this object is not a sub-piece of a larger geometric entity, then the returned index has m_type = ComponentIndex.InvalidType and m_index = -1.
Extrude a face in a Brep.
The path to extrude along. Note, the direction of the extrusion will follow the direction of the curve.
If true, the extrusion is capped with a translation of the face being extruded
A Brep on success or null on failure.
Returns a CRC calculated from the information that defines the object. This CRC can be used as a quick way to see if two objects are not identical.
The current remainder value.
CRC of the information the defines the object.
Constructs a deep (full) copy of this object.
An object of the same type as this, with the same properties and behavior.
Evaluates a surface mathematically.
The partial derivatives will be in the order {Su, Sv} for numberDerivatives = 1, {Su, Sv, Suu, Suv, Svv} for 2, {Su, Sv, Suu, Suv, Svv, Suuu, Suuv, Suvv, Svvv} for 3, and similar for higher counts.
A U parameter.
A V parameter.
The number of derivatives.
true if the operation succeeded; false otherwise.
Analytically extends the surface to include the interval.
If 0, Surface.Domain(0) will include the interval. (the first surface parameter). If 1, Surface.Domain(1) will include the interval. (the second surface parameter).
If the interval is not included in surface domain, the surface will be extended so that its domain includes the interval. Note, this method will fail if the surface is closed in the specified direction.
True if successful, false otherwise.
Aligned Bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.
Transformation to apply to object prior to the BoundingBox computation. The geometry itself is not modified.
The accurate bounding box of the transformed geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.
Aligned Bounding box solver. Gets the plane aligned bounding box.
Orientation plane for BoundingBox.
A BoundingBox in plane coordinates.
Bounding box solver. Gets the world axis aligned bounding box for the geometry.
If true, a physically accurate bounding box will be computed. If not, a bounding box estimate will be computed. For some geometry types there is no difference between the estimate and the accurate bounding box. Estimated bounding boxes can be computed much (much) faster than accurate (or "tight") bounding boxes. Estimated bounding boxes are always similar to or larger than accurate bounding boxes.
The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.
Searches for a derivative, tangent, or curvature discontinuity.
If 0, then "u" parameter is checked. If 1, then the "v" parameter is checked.
The desired continuity.
Search begins at t0. If there is a discontinuity at t0, it will be ignored. This makes it possible to repeatedly call GetNextDiscontinuity and step through the discontinuities.
(t0 != t1) If there is a discontinuity at t1 is will be ignored unless c is a locus discontinuity type and t1 is at the start or end of the curve.
default = cos(1 degree) Used only when continuityType is G1_continuous or G2_continuous. If the cosine of the angle between two tangent vectors is <= cos_angle_tolerance, then a G1 discontinuity is reported.
(default = ON_SQRT_EPSILON) Used only when continuityType is G2_continuous. If K0 and K1 are curvatures evaluated from above and below and |K0 - K1| > curvature_tolerance, then a curvature discontinuity is reported.
Parametric continuity tests c = (C0_continuous, ..., G2_continuous): TRUE if a parametric discontinuity was found strictly between t0 and t1. Note well that all curves are parametrically continuous at the ends of their domains. Locus continuity tests c = (C0_locus_continuous, ...,G2_locus_continuous): TRUE if a locus discontinuity was found strictly between t0 and t1 or at t1 is the at the end of a curve. Note well that all open curves (IsClosed()=false) are locus discontinuous at the ends of their domains. All closed curves (IsClosed()=true) are at least C0_locus_continuous at the ends of their domains.
Searches for a derivative, tangent, or curvature discontinuity.
If 0, then "u" parameter is checked. If 1, then the "v" parameter is checked.
The desired continuity.
Search begins at t0. If there is a discontinuity at t0, it will be ignored. This makes it possible to repeatedly call GetNextDiscontinuity and step through the discontinuities.
(t0 != t1) If there is a discontinuity at t1 is will be ignored unless c is a locus discontinuity type and t1 is at the start or end of the curve.
Parametric continuity tests c = (C0_continuous, ..., G2_continuous): TRUE if a parametric discontinuity was found strictly between t0 and t1. Note well that all curves are parametrically continuous at the ends of their domains. Locus continuity tests c = (C0_locus_continuous, ...,G2_locus_continuous): TRUE if a locus discontinuity was found strictly between t0 and t1 or at t1 is the at the end of a curve. Note well that all open curves (IsClosed()=false) are locus discontinuous at the ends of their domains. All closed curves (IsClosed()=true) are at least C0_locus_continuous at the ends of their domains.
Translates a parameter from the current surface to the parameter space of the surface returned by ToNurbsSurface.
The parameter in the S, or sometimes U, direction, of this surface.
The parameter in the T, or sometimes V, direction of this surface.
True if the operation succeeded; otherwise, false.
Translates a parameter from a value on the surface returned by ToNurbsSurface to the current surface.
The parameter in the S, or sometimes U, direction of the NURBS form surface.
The parameter in the T, or sometimes V, direction of the NURBS form surface.
True if the operation succeeded; otherwise, false.
Is there a NURBS surface representation of this surface.
0 unable to create NURBS representation with desired accuracy. 1 success - NURBS parameterization matches the surface's 2 success - NURBS point locus matches the surface's and the domain of the NURBS surface is correct. However, This surface's parameterization and the NURBS surface parameterization may not match. This situation happens when getting NURBS representations of surfaces that have a transcendental parameterization like spheres, cylinders, and cones.
Tests if a surface parameter value is at a seam.
Surface u parameter to test.
Surface v parameter to test.
0 if not a seam, 1 if u == Domain(0)[i] and srf(u, v) == srf(Domain(0)[1-i], v) 2 if v == Domain(1)[i] and srf(u, v) == srf(u, Domain(1)[1-i]) 3 if 1 and 2 are true.
Tests if a surface parameter value is at a singularity.
Surface u parameter to test.
Surface v parameter to test.
If true, test if (u,v) is exactly at a singularity. If false, test if close enough to cause numerical problems.
true if surface is singular at (s,t)
Determines if the surface is a portion of a cone within a given tolerance.
tolerance to use when checking.
true if the surface is a portion of a cone.
Determines if the surface is a portion of a cone within RhinoMath.ZeroTolerance.
true if the surface is a portion of a cone.
Tests continuity at a surface parameter value.
The continuity type to sample.
Surface u parameter to test.
Surface v parameter to test.
true if the surface has at least the specified continuity at the (u,v) parameter.
Determines if the surface is a portion of a cylinder within a given tolerance.
tolerance to use when checking.
true if the surface is a portion of a cylinder.
Determines if the surface is a portion of a cylinder within RhinoMath.ZeroTolerance.
true if the surface is a portion of a cylinder.
Determines if the surface is a portion of an extrusion within a given tolerance.
tolerance to use when checking.
true if the surface is an extrusion.
Determines if the surface is a portion of an extrusion within RhinoMath.ZeroTolerance.
true if the surface is an extrusion.
Determines if a 2d bounding box is isoparametric in the parameter space of this surface.
Bounding box to test.
IsoStatus flag describing the iso-parametric relationship between the surface and the bounding box.
Determines if a 2D curve is isoparametric in the parameter space of this surface.
IsoStatus flag describing the iso-parametric relationship between the surface and the curve.
Determines if a 2d curve is isoparametric in the parameter space of this surface.
Curve to test.
IsoStatus flag describing the iso-parametric relationship between the surface and the curve.
Gets isoparametric curve that corresponds to one of the four surface edges. Other IsoStatus values are not supported.
IsoStatus.North returns the curve where U varies and V is V_max IsoStatus.East returns the curve where V varies and U is U_max IsoStatus.South returns the curve where U varies and V is V_min IsoStatus.West returns the curve where V varies and U is U_min
An isoparametric curve or null on error.
Gets isoparametric curve. IsoStatus.None is not supported, and IsoStatus.X and IsoStatus.Y need valid t-values in the U- or V-domain respectively.
IsoStatus.North returns the curve where U varies and V is V_max (paramter t is ignored) IsoStatus.East returns the curve where V varies and U is U_max (paramter t is ignored) IsoStatus.South returns the curve where U varies and V is V_min (paramter t is ignored) IsoStatus.West returns the curve where V varies and U is U_min (paramter t is ignored) IsoStatus.X returns the curve where V varies and U is t (if t is inside the U-domain) IsoStatus.Y returns the curve where U varies and V is t (if t is inside the V-domain)
the parameter used if iso is X or Y.
An isoparametric curve or null on error.
Gets isoparametric curve.
In this function "direction" indicates which direction the resulting curve runs. 0: horizontal, 1: vertical In the other Surface functions that take a "direction" argument, "direction" indicates if "constantParameter" is a "u" or "v" parameter.
0 first parameter varies and second parameter is constant e.g., point on IsoCurve(0,c) at t is srf(t,c) This is a horizontal line from left to right 1 first parameter is constant and second parameter varies e.g., point on IsoCurve(1,c) at t is srf(c,t This is a vertical line from bottom to top.
The parameter that was constant on the original surface.
An isoparametric curve or null on error.
Tests a surface to see if it is planar to a given tolerance.
tolerance to use when checking.
true if there is a plane such that the maximum distance from the surface to the plane is <= tolerance.
Tests a surface to see if it is planar to zero tolerance.
true if the surface is planar (flat) to within RhinoMath.ZeroTolerance units (1e-12).
Determines if the surface is a portion of a sphere within a given tolerance.
tolerance to use when checking.
true if the surface is a portion of a sphere.
Determines if the surface is a portion of a sphere within RhinoMath.ZeroTolerance.
true if the surface is a portion of a sphere.
Determines if the surface is a portion of a torus within a given tolerance.
tolerance to use when checking.
true if the surface is a portion of a torus.
Determines if the surface is a portion of a torus within RhinoMath.ZeroTolerance.
true if the surface is a portion of a torus.
If possible, converts the object into a form that can be accurately modified with "squishy" transformations like projections, shears, an non-uniform scaling.
false if object cannot be converted to a deformable object. true if object was already deformable or was converted into a deformable object.
Sets the domain in a direction.
0 sets first parameter's domain, 1 sets second parameter's domain.
A new domain to be assigned.
true if setting succeeded, otherwise false.
Shrinks the underlying untrimmed surface of this Brep face close to trimming boundaries. Shrinking a surface is like extending smoothly, only backwards. knot of full multiplicity are added where you want the surface to be cut off. Then the remaining control points are thrown away.
The side(s) of the surface to not shrink.
true on success, false on failure.
Gets a NURBS surface representation of this surface.
tolerance to use when creating NURBS representation.
NurbsSurface on success, null on failure.
Gets a NURBS surface representation of this surface. Default tolerance of 0.0 is used.
NurbsSurface on success, null on failure.
Transforms the geometry. If the input Transform has a SimilarityType of OrientationReversing, you may want to consider flipping the transformed geometry after calling this function when it makes sense. For example, you may want to call Flip() on a Brep after transforming it.
Transformation to apply to geometry.
true if geometry successfully transformed.
Translates the object along the specified vector.
A moving vector.
true if geometry successfully translated.
Translates the object along the specified vector.
The X component.
The Y component.
The Z component.
true if geometry successfully translated.
Tests a surface to see if it is a portion of a cone and returns the cone.
tolerance to use when checking.
true if the surface is a portion of a cone.
Tests a surface to see if it is a portion of a cone within RhinoMath.ZeroTolerance and return the cone.
true if the surface is a portion of a cone.
Tests a surface to see if it is a portion of a cylinder and return the infinite cylinder.
If successful, an infinite cylinder is returned. When a surface has a cylindrical shape, even if its ends are not circles on the cylinder, it returns the axis and radius. You can detect infinite cylinders using Cylinder.IsFinite.
tolerance to use when checking.
true if the surface is a portion of a cylinder.
Tests a surface to see if it is a portion of a cylinder within RhinoMath.ZeroTolerance and return the cylinder.
If successful, an infinite cylinder is returned. When a surface has a cylindrical shape, even if its ends are not circles on the cylinder, it returns the axis and radius. You can detect infinite cylinders using Cylinder.IsFinite.
true if the surface is a portion of a cylinder.
Tests a surface with the assumption that it might be a right circular cylinder and returns this geometry.
If successful, a finite cylinder is returned.
tolerance to use when checking.
true if the surface is a portion of a cylinder.
Tests a surface for planarity and return the plane.
tolerance to use when checking.
true if there is a plane such that the maximum distance from the surface to the plane is <= tolerance.
Tests a surface for planarity and return the plane.
true if there is a plane such that the maximum distance from the surface to the plane is <= RhinoMath.ZeroTolerance.
Test a surface to see if it is a portion of a sphere and return the sphere.
tolerance to use when checking.
true if the surface is a portion of a sphere.
Test a surface to see if it is a portion of a sphere and return the sphere.
true if the surface is a portion of a sphere.
Tests a surface to see if it is a portion of a torus and returns the torus.
tolerance to use when checking.
true if the surface is a portion of a torus.
Tests a surface to see if it is a portion of a torus within RhinoMath.ZeroTolerance and returns the torus.
true if the surface is a portion of a torus.
StaticcomputeComputes an estimate of the number of bytes that this object is using in memory.
This is the same as calling GeometryBase.MemoryEstimate, but works for all CommonObject derived classes.
An estimated memory footprint.
StaticdecodeThe object a dict from Encode describes (rhino3dm only).
A dict as Encode returns it.
Provides strongly-typed access to brep faces.
A Brep face is composed of one surface and trimming curves.