ISurfaceAssistant
ReferencesBase interface for surface-like type assistants. Do not implement this interface from scratch, instead inherit from SurfaceAssistant.
Properties
Methods
BoundingBox
#Gets the bounding box of a surface.
Parameters:
| instance (object) | Surface instance. |
Returns: World axis aligned bounding box.
ConvertToBrep
#Convert the instance into a Rhino Brep type which best describes the original instance. Note this method need not return a duplicate of the input, if a duplicate is required by the caller then a ReferenceEquals check must be performed.
Parameters:
| instance (object) | Instance to convert. |
Returns: A Rhino Brep or null if there is no way to describe the surfacr geometry as a Brep.
EvaluateCurvature
#Evaluate the surface curvature at the given parameter.
Parameters:
| instance (object) | |
| parameter (SurfaceLocus) | |
| curvature (out SurfaceCurvature) |
Returns: True on success, false on failure.
EvaluateNormal
#Evaluate the normal vector of the surface at the given parameter.
Parameters:
| instance (object) | Instance of T. |
| parameter (SurfaceLocus) | Surface parameter. |
Returns: Normal at parameter, or Vector3d.Unset if the surface cannot be evaluated at the given parameter.
EvaluatePosition
#Evaluate the position of the surface at the given parameter.
Parameters:
| instance (object) | Instance of T. |
| parameter (SurfaceLocus) | Surface parameter. |
Returns: Point at parameter, or Point3d.None if the surface cannot be evaluated at the given parameter.
EvaluateTangent
#Evaluate the tangent of the surface at the given parameter.
Parameters:
| instance (object) | Instance of T. |
| parameter (SurfaceLocus) | Surface parameter. |
Returns: Tangent at parameter, or Plane.Unset if the surface cannot be evaluated at the given parameter.
EvaluateUV
#Evaluate the U and V directions of the surface at the given parameter.
Parameters:
| instance (object) | |
| parameter (SurfaceLocus) | |
| u (out Vector3d) | |
| v (out Vector3d) |
Returns: True on success, false on failure.
Explode
#Explode a surface into smaller fragments, each representing a subtype of surface.
Parameters:
| instance (object) | Instance. |
Returns: Array of subcurves.
ExplodeRecursive
#Explode a surface into the smallest possible fragments.
Parameters:
| instance (object) | Instance. |
Returns: Array of subsurfaces.
FlipDirection
#Flip the normal direction of the surface.
Parameters:
| instance (object) | Instance to flip. |
Returns: Flipped surface or null if surface cannot be flipped.
IsClosed
#Determine whether the surface is closed (i.e. solid).
Parameters:
| instance (object) | Instance of T. |
Returns: Boolean value indicating closedness.
IsPlanar
#Determine whether the surface is planar.
IsPlanar
#Determine the best fit plane for this surface.