|
17 | 17 | # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 |
|
19 | 19 | """ |
20 | | -Manages alignment layout (business logical) and alignment geometry (geometric representations). |
| 20 | +Manages alignment layout (semantic definition) and alignment geometry (geometric definition). |
| 21 | +
|
| 22 | +This API is defined in terms of the semantic definition of an alignment. The corresponding geometric definition |
| 23 | +is created and maintained automatically. The manditory zero length segment for the semantic and geometric definitions |
| 24 | +are automatically created and maintained. |
| 25 | +
|
| 26 | +Alignments are created with stationing referents. Each layout segment is assigned a position referent that informs about |
| 27 | +the start point of the segment. An example is the point of curvature of a horizontal circular curve. The referent is |
| 28 | +nested to the segment representing the circular arc and is named with a indicator of the position and the station, e.g. "P.C. (145+98.32)" |
21 | 29 |
|
22 | 30 | This API does not determine alignment parameters based on rules, such as minimum curve radius as a function of design speed or sight distance. |
23 | 31 |
|
24 | 32 | This API is under development and subject to code breaking changes in the future. |
25 | 33 |
|
26 | 34 | Presently, this API supports: |
27 | 35 | 1. Creating alignments, both horizontal and vertical, using the PI method. Alignment definition can be read from a CSV file. |
28 | | - 2. Adding business logic and geometric segments to the end of an alignment |
29 | | - 3. Adding and removing the zero length segment at the end of alignments |
30 | | - 4. Creating geometric representations from a business logical definition |
31 | | - 5. Mapping individual business logical segments to geometric segments (complete for horizontal, missing clothoid for vertical, not implemented for cant) |
32 | | - 6. Using curve geometry to determine IfcCurveSegment.Transition transition code. |
33 | | - 7. Utility functions for printing business logical and geometric representations, as well as minimal geometry evaluations |
| 36 | + 2. Creating alignments segment by segment. |
| 37 | + 3. Automatic creation of geometric definitions (IfcCompositeCurve, IfcGradientCurve, IfcSegmentedReferenceCurve) |
| 38 | + 4. Automatic definition of stationing |
| 39 | + 5. Automatic definition of alignment transition point referents |
| 40 | + 6. Utility functions for printing business logical and geometric representations, as well as minimal geometry evaluations |
34 | 41 |
|
35 | | -Future versions of this API will support: |
| 42 | +Future versions of this API may support: |
36 | 43 | 1. Defining alignments using the PI method, including transition spirals |
37 | 44 | 2. Updating horizontal curve definitions by revising transition spiral parameters and circular curve radii |
38 | 45 | 3. Updating vertical curve definitions by revising horizontal length of curves |
39 | 46 | 4. Removing a segment at any location along a curve |
40 | 47 | 5. Adding a segment at any location along a curve |
41 | 48 | """ |
42 | 49 |
|
43 | | -from .add_segment_to_curve import add_segment_to_curve |
44 | | -from .add_segment_to_layout import add_segment_to_layout |
45 | | -from .add_stationing_to_alignment import add_stationing_to_alignment |
46 | | -from .add_vertical_alignment_by_pi_method import add_vertical_alignment_by_pi_method |
47 | | -from .add_vertical_alignment import add_vertical_alignment |
48 | | -from .add_zero_length_segment import add_zero_length_segment |
49 | | -from .create_alignment_by_pi_method import create_alignment_by_pi_method |
50 | | -from .create_alignment_from_csv import create_alignment_from_csv |
51 | | -from .create_horizontal_alignment_by_pi_method import create_horizontal_alignment_by_pi_method |
52 | | -from .create_geometric_representation import create_geometric_representation |
53 | | -from .create_vertical_alignment_by_pi_method import create_vertical_alignment_by_pi_method |
| 50 | +from .add_stationing_referent import add_stationing_referent |
| 51 | +from .add_vertical_layout import add_vertical_layout |
| 52 | +from .create_layout_segment import create_layout_segment |
| 53 | +from .create_alignment import create |
| 54 | +from .create_by_pi_method import create_by_pi_method |
| 55 | +from .create_from_csv import create_from_csv |
| 56 | +from .create_segment_representations import create_segment_representations |
54 | 57 | from .distance_along_from_station import distance_along_from_station |
| 58 | +from .get_alignment import get_alignment |
| 59 | +from .get_alignment_station import get_alignment_station |
| 60 | +from .get_layout_segments import get_layout_segments |
| 61 | +from .get_horizontal_layout import get_horizontal_layout |
| 62 | +from .get_vertical_layout import get_vertical_layout |
| 63 | +from .get_cant_layout import get_cant_layout |
55 | 64 | from .get_alignment_layouts import get_alignment_layouts |
56 | 65 | from .get_axis_subcontext import get_axis_subcontext |
57 | 66 | from .get_basis_curve import get_basis_curve |
58 | 67 | from .get_child_alignments import get_child_alignments |
59 | 68 | from .get_curve import get_curve |
| 69 | +from .get_layout_curve import get_layout_curve |
60 | 70 | from .get_parent_alignment import get_parent_alignment |
61 | 71 | from .has_zero_length_segment import has_zero_length_segment |
62 | | -from .map_alignment_segments import map_alignment_segments |
63 | | -from .map_alignment_horizontal_segment import map_alignment_horizontal_segment |
64 | | -from .map_alignment_vertical_segment import map_alignment_vertical_segment |
65 | | -from .map_alignment_cant_segment import map_alignment_cant_segment |
| 72 | +from .layout_horizontal_alignment_by_pi_method import layout_horizontal_alignment_by_pi_method |
| 73 | +from .layout_vertical_alignment_by_pi_method import layout_vertical_alignment_by_pi_method |
66 | 74 | from .name_segments import name_segments |
67 | | -from .remove_last_segment import remove_last_segment |
68 | | -from .remove_zero_length_segment import remove_zero_length_segment |
69 | | -from .update_curve_segment_transition_code import update_curve_segment_transition_code |
70 | 75 | from .util import * |
71 | 76 |
|
| 77 | +from ._get_segment_start_point_label import register_referent_name_callback |
| 78 | + |
72 | 79 | __all__ = [ |
73 | | - "add_segment_to_curve", |
74 | | - "add_segment_to_layout", |
75 | | - "add_stationing_to_alignment", |
76 | | - "add_vertical_alignment_by_pi_method", |
77 | | - "add_vertical_alignment", |
78 | | - "add_zero_length_segment", |
79 | | - "create_alignment_by_pi_method", |
80 | | - "create_alignment_from_csv", |
81 | | - "create_horizontal_alignment_by_pi_method", |
82 | | - "create_geometric_representation", |
83 | | - "create_vertical_alignment_by_pi_method", |
| 80 | + "add_stationing_referent", |
| 81 | + "add_vertical_layout", |
| 82 | + "create_layout_segment", |
| 83 | + "create", |
| 84 | + "create_by_pi_method", |
| 85 | + "create_from_csv", |
84 | 86 | "distance_along_from_station", |
| 87 | + "get_alignment", |
| 88 | + "get_alignment_station", |
| 89 | + "get_layout_segments", |
| 90 | + "get_horizontal_layout", |
| 91 | + "get_vertical_layout", |
| 92 | + "get_cant_layout", |
85 | 93 | "get_alignment_layouts", |
86 | 94 | "get_axis_subcontext", |
87 | 95 | "get_basis_curve", |
88 | 96 | "get_child_alignments", |
89 | 97 | "get_curve", |
| 98 | + "get_layout_curve", |
90 | 99 | "get_parent_alignment", |
91 | 100 | "has_zero_length_segment", |
92 | | - "map_alignment_segments", |
93 | | - "map_alignment_horizontal_segment", |
94 | | - "map_alignment_vertical_segment", |
95 | | - "map_alignment_cant_segment", |
| 101 | + "layout_horizontal_alignment_by_pi_method", |
| 102 | + "layout_vertical_alignment_by_pi_method", |
96 | 103 | "name_segments", |
97 | | - "remove_last_segment", |
98 | | - "remove_zero_length_segment", |
99 | | - "update_curve_segment_transition_code", |
| 104 | + "register_referent_name_callback", |
100 | 105 | ] |
0 commit comments