mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
Show clipping plane in front to make it easy to select
This commit is contained in:
@@ -2176,6 +2176,7 @@ class CreateClippingPlane(bpy.types.Operator):
|
|||||||
mesh.update()
|
mesh.update()
|
||||||
|
|
||||||
plane_obj = bpy.data.objects.new("ClippingPlane", mesh)
|
plane_obj = bpy.data.objects.new("ClippingPlane", mesh)
|
||||||
|
plane_obj.show_in_front = True
|
||||||
context.collection.objects.link(plane_obj)
|
context.collection.objects.link(plane_obj)
|
||||||
z_axis = Vector((0, 0, 1))
|
z_axis = Vector((0, 0, 1))
|
||||||
rotation_matrix = z_axis.rotation_difference(normal).to_matrix().to_4x4()
|
rotation_matrix = z_axis.rotation_difference(normal).to_matrix().to_4x4()
|
||||||
|
|||||||
Reference in New Issue
Block a user