Skip to content

Commit 7221407

Browse files
Use focal point as the center of rotation (#1948)
* Use focal point as the center of rotation (in jupyter and related contexts) * Update cq directive too
1 parent fea85a5 commit 7221407

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cadquery/cq_directive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
roll: vtk.Interaction.Manipulators.vtkMouseCameraTrackballRollManipulator.newInstance(),
5555
};
5656
57+
manips.rot.setUseFocalPointAsCenterOfRotation(true);
5758
manips.zoom1.setControl(true);
5859
manips.zoom2.setButton(3);
5960
manips.roll.setShift(true);

cadquery/occ_impl/jupyter_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
roll: vtk.Interaction.Manipulators.vtkMouseCameraTrackballRollManipulator.newInstance(),
9393
}};
9494
95+
manips.rot.setUseFocalPointAsCenterOfRotation(true);
9596
manips.zoom1.setControl(true);
9697
manips.zoom2.setScrollEnabled(true);
9798
manips.roll.setShift(true);

0 commit comments

Comments
 (0)