ISurfaceAssistant
ReferencesBase interface for surface-like type assistants. Do not implement this interface from scratch, instead inherit from SurfaceAssistant.
Properties
Methods
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.
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.
Returns: True on success, false on failure.
EvaluateNormal
#Evaluate the normal vector of the surface at the given 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.
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.
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.
Returns: True on success, false on failure.
Explode
#Explode a surface into smaller fragments, each representing a subtype of surface.
Returns: Array of subcurves.
ExplodeRecursive
#Explode a surface into the smallest possible fragments.
Returns: Array of subsurfaces.
FindClosestParameter
#Find the locus on the surface closest to a test point.
Returns: Parameter or SurfaceLocus.None if no parameter could be found.
FlipDirection
#Flip the normal direction of the surface.
Returns: Flipped surface or null if surface cannot be flipped.
IsClosed
#Determine whether the surface is closed (i.e. solid).
Returns: Boolean value indicating closedness.
IsPlanar
#Determine the best fit plane for this surface.