Python package
ra.profile_sweep
Sweeps of a profile along rails.
import rhinoartisan as ra
Wraps ArtisanPlugin.Scripting.ProfileSweepApi.
Functions
| Function | |
|---|---|
create() | curve_ids are the closed profiles, in sweep order (at least 2). |
ra.profile_sweep.create()
ra.profile_sweep.create(curve_ids: Sequence[IdLike], start_cap=None, end_cap=None, start_cap_height=None, end_cap_height=None, start_continuity=None, end_continuity=None, start_flip=None, end_flip=None, symmetry=None, sub_d=None, sub_d_segments=None, sub_d_rail_segments=None) -> List[str]
curve_ids 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 | |
|---|---|---|
curve_ids | Sequence[IdLike] | required |
start_cap | str | optional — None = the tool default |
end_cap | str | optional — None = the tool default |
start_cap_height | float | optional — None = the tool default |
end_cap_height | float | optional — None = the tool default |
start_continuity | int | optional — None = the tool default |
end_continuity | int | optional — None = the tool default |
start_flip | bool | optional — None = the tool default |
end_flip | bool | optional — None = the tool default |
symmetry | str | optional — None = the tool default |
sub_d | bool | optional — None = the tool default |
sub_d_segments | int | optional — None = the tool default |
sub_d_rail_segments | int | optional — None = the tool default |