![]() |
NDEVR
API Documentation
|
Contains information about a particular point of interest created from a user mouse interaction. More...
Public Types | |
| enum | SnapLocationType { e_no_snap , e_point , e_edge , e_endpoint , e_midpoint , e_center , e_model_node , e_perpendicular , e_extension , e_tangent , e_parallel , e_normal , e_on_face , e_x , e_y , e_z , e_snap_type_size } |
| Defines the type of geometric feature that was snapped to. More... | |
Public Member Functions | |
| SnapPoint () | |
| Constructs a SnapPoint with all fields set to invalid/default values. | |
| bool | operator== (const SnapPoint &point) const |
| Compares two SnapPoints for equality based on location, model ID, and snap type. | |
Public Attributes | |
| Buffer< SnapLocationType > | all_types |
| All snap types that apply to this point (e.g., a midpoint may also be on an edge). | |
| fltp08 | closest_snap_distance |
| The screen-space or world-space distance from the cursor to this snap point. | |
| UUID | geometry_id |
| The UUID of the specific geometry object that was snapped to. | |
| Matrix< fltp08 > | geometry_transform |
| The world transform matrix of the geometry at the time of snapping. | |
| uint04 | index_id |
| The index within the geometry (e.g., face or primitive index). | |
| bool | is_smooth = false |
| Whether the snapped surface or edge is smooth (e.g., part of a curved surface). | |
| UUID | layer_id |
| The UUID of the layer containing the snapped geometry. | |
| Vertex< 3, fltp08 > | location |
| The 3D world-space position of the snap point. | |
| SnapLocationType | location_type |
| The primary snap type that was matched. | |
| UUID | model_id |
| The UUID of the model containing the snapped geometry. | |
| LineSegment< 3, fltp08 > | preferred_line |
| A preferred reference line associated with this snap (e.g., the edge snapped to). [Note: possible typo for "preferred"]. | |
| uint04 | vertex_id |
| The vertex index within the geometry that was snapped to. | |
Contains information about a particular point of interest created from a user mouse interaction.
Definition at line 45 of file SnapPoint.h.
Defines the type of geometric feature that was snapped to.
Definition at line 51 of file SnapPoint.h.
|
inline |
Compares two SnapPoints for equality based on location, model ID, and snap type.
| [in] | point | The SnapPoint to compare against. |
Definition at line 96 of file SnapPoint.h.
References SnapPoint(), location, location_type, and model_id.