mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 07:16:53 +00:00
Removed deprecated angle annotations operator
As it's currently completely replace with new more intuitive operator.
This commit is contained in:
@@ -141,8 +141,6 @@ class SvgWriter:
|
|||||||
self.draw_dimension_annotations(obj)
|
self.draw_dimension_annotations(obj)
|
||||||
elif element.ObjectType == "ANGLE":
|
elif element.ObjectType == "ANGLE":
|
||||||
self.draw_angle_annotations(obj)
|
self.draw_angle_annotations(obj)
|
||||||
elif element.ObjectType == "ANGLE_OLD":
|
|
||||||
self.draw_angle_old_annotations(obj)
|
|
||||||
elif element.ObjectType == "RADIUS":
|
elif element.ObjectType == "RADIUS":
|
||||||
self.draw_radius_annotations(obj)
|
self.draw_radius_annotations(obj)
|
||||||
elif element.ObjectType == "DIAMETER":
|
elif element.ObjectType == "DIAMETER":
|
||||||
@@ -654,12 +652,6 @@ class SvgWriter:
|
|||||||
new_edges = [bm.edges.new( (new_verts[e[0]], new_verts[e[1]]) ) for e in ((0, 1), (1, 2))]
|
new_edges = [bm.edges.new( (new_verts[e[0]], new_verts[e[1]]) ) for e in ((0, 1), (1, 2))]
|
||||||
self.draw_svg_3point_arc(obj, bm)
|
self.draw_svg_3point_arc(obj, bm)
|
||||||
|
|
||||||
def draw_angle_old_annotations(self, obj):
|
|
||||||
bm = bmesh.new()
|
|
||||||
bm.from_mesh(obj.data)
|
|
||||||
bm.verts.ensure_lookup_table()
|
|
||||||
self.draw_svg_3point_arc(obj, bm)
|
|
||||||
|
|
||||||
def draw_svg_3point_arc(self, obj, bm):
|
def draw_svg_3point_arc(self, obj, bm):
|
||||||
# This implementation uses an SVG arc, which means that it can only draw
|
# This implementation uses an SVG arc, which means that it can only draw
|
||||||
# arcs that are orthogonal to the view (e.g. not arcs in 3D).
|
# arcs that are orthogonal to the view (e.g. not arcs in 3D).
|
||||||
|
|||||||
@@ -377,9 +377,6 @@ class BIM_PT_annotation_utilities(Panel):
|
|||||||
op = row.operator("bim.add_annotation", text="Angle", icon="DRIVER_ROTATIONAL_DIFFERENCE")
|
op = row.operator("bim.add_annotation", text="Angle", icon="DRIVER_ROTATIONAL_DIFFERENCE")
|
||||||
op.object_type = "ANGLE"
|
op.object_type = "ANGLE"
|
||||||
op.data_type = "curve"
|
op.data_type = "curve"
|
||||||
op = row.operator("bim.add_annotation", text="Angle (old)", icon="DRIVER_ROTATIONAL_DIFFERENCE")
|
|
||||||
op.object_type = "ANGLE_OLD"
|
|
||||||
op.data_type = "mesh"
|
|
||||||
|
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
op = row.operator("bim.add_annotation", text="Radius", icon="FORWARD")
|
op = row.operator("bim.add_annotation", text="Radius", icon="FORWARD")
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
def create_annotation_object(cls, drawing, object_type):
|
def create_annotation_object(cls, drawing, object_type):
|
||||||
data_type = {
|
data_type = {
|
||||||
"ANGLE": "curve",
|
"ANGLE": "curve",
|
||||||
"ANGLE_OLD": "mesh",
|
|
||||||
"BREAKLINE": "mesh",
|
"BREAKLINE": "mesh",
|
||||||
"DIAMETER": "curve",
|
"DIAMETER": "curve",
|
||||||
"DIMENSION": "curve",
|
"DIMENSION": "curve",
|
||||||
|
|||||||
Reference in New Issue
Block a user