Unroller

public class Unroller
Represents the operation of unrolling a single surface.

Constructors

Unroller

#Since v5.0
Initializes a new instance of the Unroller class with a brep.
public Unroller(
brep
A brep to be unrolled.
)

Unroller

#Since v5.0
Initializes a new instance of the Unroller class with surface.
public Unroller(
surface
A surface to be unrolled.
)

Properties

AbsoluteTolerance

#Since v5.0
Gets or sets the absolute tolerance for the unrolling operation.

Absolute tolerance is used in the evaluation of new entities, such as intersections, re-projections and splits.

In the current implementation, absolute tolerance is used in tessellating rails, fitting curves and pulling back trims.

public double AbsoluteTolerance { get; set; }

ExplodeOutput

#Since v5.0
Gets or sets a value determining whether geometry should be exploded.
public bool ExplodeOutput { get; set; }

ExplodeSpacing

#Since v5.0
Gets or sets a value determining whether spacing should be exploded.
public double ExplodeSpacing { get; set; }

RelativeTolerance

#Since v5.0
Gets or sets the relative tolerance for the unrolling operation.

Relative tolerance is used in the evaluation of intrinsic properties, such as computations "along" the surface or brep.

In the current implementation, relative tolerance is used to decide if a surface is flat enough to try to unroll. That helps ease the scale dependency. The surface has to be linear in one direction within (length * RelativeTolerance) to be considered linear for that purpose. Otherwise smash will ignore that tolerance and unroll anything.

public double RelativeTolerance { get; set; }

Methods

AddFollowingGeometry

#Since v5.0
Adds a curve that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
curve
The curve.
)

AddFollowingGeometry

#Since v5.0
Adds curves that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
curves
An array, a list or any enumerable set of curves.
)

AddFollowingGeometry

#Since v5.0
Adds text dots that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
dotLocations,
An array, a list, or any enumerable set of dot locations.
dotText
An array, a list, or any enumerable set of dot strings.
)

AddFollowingGeometry

#Since v5.0
Adds points that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
points
An array, a list or any enumerable set of points.
)

AddFollowingGeometry

#Since v5.0
Adds text dots that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
dots
An array, a list or any enumerable set of text dots.
)

AddFollowingGeometry

#Since v5.0
Adds a point that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
point
A point.
)

AddFollowingGeometry

#Since v5.0
Adds a text dot that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
dotLocation,
A dot point.
dotText
A dot text.
)

AddFollowingGeometry

#Since v5.0
Adds a point that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
point
A point.
)

AddFollowingGeometry

#Since v5.0
Adds a text dot that should be unrolled along with the surface/brep.
public void AddFollowingGeometry(
dot
A text dot.
)

FollowingGeometryIndex

#Since v6.0
Given an unrolled curve, returns the index of the source, or following curve.
public int FollowingGeometryIndex(
curve
An unrolled curve returned by Unroller.PerformUnroll.
)
The index of the curve added by Unroller.AddFollowingGeometry if successful, otherwise -1.

FollowingGeometryIndex

#Since v6.0
Given an unrolled text dot, returns the index of the source, or following text dot.
public int FollowingGeometryIndex(
dot
An unrolled text dot returned by Unroller.PerformUnroll.
)
The index of the text dot added by Unroller.AddFollowingGeometry if successful, otherwise -1.

PerformUnroll

#Since v5.0
Executes unrolling operations.
public Brep[] PerformUnroll(
out Curve[]
unrolledCurves,
An array of unrolled curves is assigned during the call in this out parameter.
out Point3d[]
unrolledPoints,
An array of unrolled points is assigned during the call in this out parameter.
out TextDot[]
unrolledDots
An array of unrolled text dots is assigned during the call in this out parameter.
)
An array of breps. This array can be empty.

PerformUnroll

#Since v6.0
Executes unrolling operations.
public int PerformUnroll(
flatbreps
List of breps containing flattened results.
)
Number of breps in result