forked from 1b-agent/opencadstudio-upstream
Angular dimension drawing: ray-based three-point frame, text beside the arc
Three-point angular dimensions take their sweep from the two rays and the arc point (extension lines follow their own rays, straight and reflex angles draw), dynamic angular dimensions store no text point so DIMTAD places the text beside an unbroken arc, and dynamic dimensions carry a DIMGAP override of a quarter text height. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
4ad4041858
commit
160930b99a
4 files changed
+56
-15
No files matched your search
@@ -1205,7 +1205,8 @@ pub(crate) fn angular_two_line_entity(
|
||||
dim.definition_point = v3(second_end);
|
||||
dim.dimension_arc = v3(arc_point);
|
||||
dim.base.definition_point = dim.definition_point;
|
||||
dim.base.text_middle_point = dim.dimension_arc;
|
||||
// No stored text point: the style places the text (DIMTAD) beside the
|
||||
// arc at render time, as the reference draws a dynamic dimension.
|
||||
dim.base.insertion_point = dim.dimension_arc;
|
||||
dim.base.actual_measurement = dim.measurement_degrees();
|
||||
crate::entities::dimension::set_dimension_text_override(&mut dim.base, text);
|
||||
@@ -1224,7 +1225,7 @@ pub(crate) fn angular_three_point_entity(
|
||||
let mut dim = DimensionAngular3Pt::new(v3(vertex), v3(first), v3(second));
|
||||
dim.definition_point = v3(arc_point);
|
||||
dim.base.definition_point = dim.definition_point;
|
||||
dim.base.text_middle_point = dim.definition_point;
|
||||
dim.base.text_middle_point = Vector3::new(0.0, 0.0, 0.0);
|
||||
dim.base.insertion_point = dim.definition_point;
|
||||
dim.base.actual_measurement = dim.measurement_degrees();
|
||||
crate::entities::dimension::set_dimension_text_override(&mut dim.base, text);
|
||||
|
||||
Reference in new issue
Block a user