.NET API
ProfileSweepApi
Parametric sweep through two or more closed profile curves (the ArtisanProfileSweep tool).
from ArtisanPlugin.Scripting import ProfileSweepApi
See also the guide, Accessories › Profile sweep, and the Python package, ra.profile_sweep.
Methods
| Method | |
|---|---|
Create | curveIds are the closed profiles, in sweep order (at least 2). |
Create
IReadOnlyList<Guid> ProfileSweepApi.Create(
IEnumerable<Guid> curveIds,
string startCap = null,
string endCap = null,
double startCapHeight = 0,
double endCapHeight = 0,
int startContinuity = -1,
int endContinuity = -1,
bool startFlip = false,
bool endFlip = false,
string symmetry = null,
bool subD = false,
int subDSegments = 0,
int subDRailSegments = 0)
curveIds are the closed profiles, in sweep order (at least 2). Caps are “NONE”, “FLAT” or “ROUND” per side (default ROUND, height 0.2). Continuities are 0..4 (G0 position .. G4; default 1 tangency, -1 keeps it). symmetry is “NONE”, “VERTICAL” (mirror world YZ), “HORIZONTAL” (mirror world ZX) or “QUAD” (both). subD true outputs a SubD instead of a Brep (caps do not apply); segments default 32 cross-section / 10 rail. Returns the ids of the created objects (Breps are parametric ProfileSweep custom objects; the source curves stay untouched).
| Parameter | Type | Default |
|---|---|---|
curveIds | IEnumerable<Guid> | required |
startCap | string | null |
endCap | string | null |
startCapHeight | double | 0 |
endCapHeight | double | 0 |
startContinuity | int | -1 |
endContinuity | int | -1 |
startFlip | bool | false |
endFlip | bool | false |
symmetry | string | null |
subD | bool | false |
subDSegments | int | 0 |
subDRailSegments | int | 0 |
Returns IReadOnlyList<Guid>.