M_Rhino_Geometry_Silhouette_Compute_1 - mcneel/rhinocommon-api-docs GitHub Wiki
Silhouette.Compute Method (GeometryBase, SilhouetteType, ViewportInfo, Double, Double, IEnumerable(Plane), CancellationToken)
Compute silhouettes of a shape for a specified projection.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Silhouette[] Compute(
GeometryBase geometry,
SilhouetteType silhouetteType,
ViewportInfo viewport,
double tolerance,
double angleToleranceRadians,
IEnumerable<Plane> clippingPlanes,
CancellationToken cancelToken
)
VB
Public Shared Function Compute (
geometry As GeometryBase,
silhouetteType As SilhouetteType,
viewport As ViewportInfo,
tolerance As Double,
angleToleranceRadians As Double,
clippingPlanes As IEnumerable(Of Plane),
cancelToken As CancellationToken
) As Silhouette()
- geometry
- Type: Rhino.Geometry.GeometryBase
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion. - silhouetteType
- Type: Rhino.Geometry.SilhouetteType
Types of silhouette to compute. - viewport
- Type: Rhino.DocObjects.ViewportInfo
Projection. - tolerance
- Type: System.Double
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
- Type: System.Double
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
- Type: System.Collections.Generic.IEnumerable(Plane)
Optional collection of clipping planes. - cancelToken
- Type: System.Threading.CancellationToken
Computation cancellation token.
Type: Silhouette[]
Array of silhouette curves.
Supported in: 6.0.16224.21491