Swept Component¶
- class hypervehicle.components.swept.SweptComponent(cross_sections: List[List[Path]], close_ends: bool | None = True, stl_resolution: int | Dict[str, int] | None = 1, verbosity: int | None = 1, name: str | None = None)[source]¶
Bases:
Component- __init__(cross_sections: List[List[Path]], close_ends: bool | None = True, stl_resolution: int | Dict[str, int] | None = 1, verbosity: int | None = 1, name: str | None = None) None[source]¶
Create a swept component.
- Parameters:
cross_sections (list) – A list containing cross-sections. Each cross-section is a list of paths that define one cross-section. They should connect end-to-end.
close_ends (bool, optional) – If true the first and last cross-section will be used to close the sweap component. Only supported is cross-section is defined by 4 paths. The default is True.
stl_resolution (int | dict[str, int], optional) – Defines different stl resolution for different edges. Keys are are: ‘e0’, ‘e1’, … ‘eN’, ‘sweep’ for edges in first cross-section and for swept edges. The default is 1.