BrepCreateFromSweep Method (Curve, IEnumerableCurve, Point3d, Point3d, SweepFrame, Vector3d, Boolean, SweepBlend, SweepMiter, Double, SweepRebuild, Int32, Double, Boolean) |
Sweep1 function that fits a surface through a series of profile curves that define the surface cross-sections
and one curve that defines a surface edge.
Unlike other CreateFromSweep and CreateFromSweepSegmented overrides, this method:
- Matches shape curve directions and (for closed shapes) seam points before sweeping, which prevents twisting.
- Detects when the inputs qualify for a "simple sweep" and creates a simpler surface in this case.
- Lets the caller pick between the refit - rail and segmented sweep paths.
- Splits the resulting Breps at fully multiple knots.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic static Brep[] CreateFromSweep(
Curve rail,
IEnumerable<Curve> shapes,
Point3d startPoint,
Point3d endPoint,
SweepFrame frameType,
Vector3d roadlikeNormal,
bool closed,
SweepBlend blendType,
SweepMiter miterType,
double tolerance,
SweepRebuild rebuildType,
int rebuildPointCount,
double refitTolerance,
bool refitRail
)
Public Shared Function CreateFromSweep (
rail As Curve,
shapes As IEnumerable(Of Curve),
startPoint As Point3d,
endPoint As Point3d,
frameType As SweepFrame,
roadlikeNormal As Vector3d,
closed As Boolean,
blendType As SweepBlend,
miterType As SweepMiter,
tolerance As Double,
rebuildType As SweepRebuild,
rebuildPointCount As Integer,
refitTolerance As Double,
refitRail As Boolean
) As Brep()
Parameters
- rail
- Type: Rhino.GeometryCurve
Rail to sweep shapes along. - shapes
- Type: System.Collections.GenericIEnumerableCurve
Shape curves. - startPoint
- Type: Rhino.GeometryPoint3d
Optional starting point of sweep. Use Point3d.Unset if you do not want to include a start point. - endPoint
- Type: Rhino.GeometryPoint3d
Optional ending point of sweep. Use Point3d.Unset if you do not want to include an end point. - frameType
- Type: Rhino.GeometrySweepFrame
The frame type. - roadlikeNormal
- Type: Rhino.GeometryVector3d
The roadlike normal directoion. Use Vector3d.Unset if the frame type is not set to roadlike. - closed
- Type: SystemBoolean
Only matters if shapes are closed. - blendType
- Type: Rhino.GeometrySweepBlend
The shape blending type. - miterType
- Type: Rhino.GeometrySweepMiter
The mitering type. - tolerance
- Type: SystemDouble
[Missing <param name="tolerance"/> documentation for "M:Rhino.Geometry.Brep.CreateFromSweep(Rhino.Geometry.Curve,System.Collections.Generic.IEnumerable{Rhino.Geometry.Curve},Rhino.Geometry.Point3d,Rhino.Geometry.Point3d,Rhino.Geometry.SweepFrame,Rhino.Geometry.Vector3d,System.Boolean,Rhino.Geometry.SweepBlend,Rhino.Geometry.SweepMiter,System.Double,Rhino.Geometry.SweepRebuild,System.Int32,System.Double,System.Boolean)"]
- rebuildType
- Type: Rhino.GeometrySweepRebuild
The rebuild style. - rebuildPointCount
- Type: SystemInt32
If rebuild == SweepRebuild.Rebuild, the number of points. Otherwise specify 0. - refitTolerance
- Type: SystemDouble
If rebuild == SweepRebuild.Refit, the refit tolerance. Otherwise, specify 0.0. - refitRail
- Type: SystemBoolean
false = segmented sweep, true = refit-rail sweep.
Return Value
Type:
BrepArray of Brep sweep results.
RemarksThis version mimics what Rhino's Sweep1 command does.
See Also