Silhouette

References
public class Silhouette
Information about silhouette curves that are generated from geometry (surfaces, brep faces, meshes)

Properties

Curve

#Since v6.0
3D curve representing the shape of the silhouette.
public Curve Curve { get; }

GeometryComponentIndex

#Since v6.0
Gets the component index corresponding with this silhouette curve. This field is only set when the entire silhouette curve is part of some geometry component.
public ComponentIndex GeometryComponentIndex { get; }

SilhouetteType

#Since v6.0
Gets the type of this silhouette curve.
public SilhouetteType SilhouetteType { get; }

Methods

Compute

#Since v6.0
Compute silhouettes of a shape for a perspective projection.
public static Silhouette[] Compute(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
silhouetteType,
Types of silhouette to compute.
perspectiveCameraLocation,
Location of perspective camera.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians,
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
clippingPlanes,
Optional collection of clipping planes.
cancelToken
Computation cancellation token.
)
Array of silhouette curves.

Compute

#Since v6.0
Compute silhouettes of a shape for a perspective projection.
public static Silhouette[] Compute(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
silhouetteType,
Types of silhouette to compute.
perspectiveCameraLocation,
Location of perspective camera.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
)
Array of silhouette curves.

Compute

#Since v6.0
Compute silhouettes of a shape for a parallel projection.
public static Silhouette[] Compute(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
silhouetteType,
Types of silhouette to compute.
parallelCameraDirection,
Direction of parallel camera.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians,
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
clippingPlanes,
Optional collection of clipping planes.
cancelToken
Computation cancellation token.
)
Array of silhouette curves.

Compute

#Since v6.0
Compute silhouettes of a shape for a parallel projection.
public static Silhouette[] Compute(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
silhouetteType,
Types of silhouette to compute.
parallelCameraDirection,
Direction of parallel camera.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
)
Array of silhouette curves.

Compute

#Since v6.0
Compute silhouettes of a shape for a specified projection.
public static Silhouette[] Compute(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
silhouetteType,
Types of silhouette to compute.
viewport,
Projection.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians,
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
clippingPlanes,
Optional collection of clipping planes.
cancelToken
Computation cancellation token.
)
Array of silhouette curves.

Compute

#Since v6.0
Compute silhouettes of a shape for a specified projection.
public static Silhouette[] Compute(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
silhouetteType,
Types of silhouette to compute.
viewport,
Projection.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
)
Array of silhouette curves.

ComputeDraftCurve

#Since v7.0
Computes draft curve silhouettes of a shape.
public static Silhouette[] ComputeDraftCurve(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
draftAngle,
The draft angle in radians. Draft angle can be a positive or negative value.
pullDirection,
3d direction for the mold to be pulled in, directed away from the object.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians,
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
cancelToken
Computation cancellation token.
)
Array of silhouette curves.

ComputeDraftCurve

#Since v7.0
Computes draft curve silhouettes of a shape.
public static Silhouette[] ComputeDraftCurve(
geometry,
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion.
draftAngle,
The draft angle in radians. Draft angle can be a positive or negative value.
pullDirection,
3d direction for the mold to be pulled in, directed away from the object.
tolerance,
Tolerance to use for determining projecting relationships. Surfaces and curves that are closer than tolerance, may be treated as projecting. When in doubt use RhinoDoc.ModelAbsoluteTolerance.
angleToleranceRadians
Angular tolerance to use for determining projecting relationships. A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting. When in doubt use RhinoDoc.ModelAngleToleranceRadians.
)
Array of silhouette curves.