ISurfaceAssistant

References
public interface ISurfaceAssistant
Base interface for surface-like type assistants. Do not implement this interface from scratch, instead inherit from SurfaceAssistant.

Properties

IsReimplementation

#
Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
bool IsReimplementation { get; }

ReimplementationBase

#
Gets the base assistant (if any) this assistant is a re-implementation of.
ISurfaceAssistant ReimplementationBase { get; }

Type

#
Gets the type associated with this assistant.
Type Type { get; }

Methods

BoundingBox

#
Gets the bounding box of a surface.
BoundingBox BoundingBox(
instance
Surface instance.
)
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.
Brep ConvertToBrep(
instance
Instance to convert.
)
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.
bool EvaluateCurvature(
instance,
parameter,
curvature
)
True on success, false on failure.

EvaluateNormal

#
Evaluate the normal vector of the surface at the given parameter.
Vector3d EvaluateNormal(
instance,
Instance of T.
parameter
Surface parameter.
)
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.
Point3d EvaluatePosition(
instance,
Instance of T.
parameter
Surface parameter.
)
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.
Plane EvaluateTangent(
instance,
Instance of T.
parameter
Surface parameter.
)
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.
bool EvaluateUV(
instance,
parameter,
u,
v
)
True on success, false on failure.

Explode

#
Explode a surface into smaller fragments, each representing a subtype of surface.
object[] Explode(
instance
Instance.
)
Array of subcurves.

ExplodeRecursive

#
Explode a surface into the smallest possible fragments.
object[] ExplodeRecursive(
instance
Instance.
)
Array of subsurfaces.

FindClosestParameter

#
Find the locus on the surface closest to a test point.
SurfaceLocus FindClosestParameter(
instance,
Instance of T.
point
Test point.
)
Parameter or SurfaceLocus.None if no parameter could be found.

FlipDirection

#
Flip the normal direction of the surface.
object FlipDirection(
instance
Instance to flip.
)
Flipped surface or null if surface cannot be flipped.

IsClosed

#
Determine whether the surface is closed (i.e. solid).
bool IsClosed(
instance
Instance of T.
)
Boolean value indicating closedness.

IsPlanar

#
Determine whether the surface is planar.
bool IsPlanar(
instance,
Instance of T.
tolerance
Maximum allowed planarity deviation.
)
Boolean value indicating planarity.

IsPlanar

#
Determine the best fit plane for this surface.
void IsPlanar(
instance,
Instance of T.
out Plane
plane,
Plane of curve or Plane.None if curve is not planar.
out double
deviation
Maximum deviation from plane.
)

Slice

#
Compute the intersection between a surface and a plane.
object[] Slice(
instance,
Surface.
plane,
Plane.
tolerance
Absolute tolerance.
)
Array of any kind of curves.