occQt icon indicating copy to clipboard operation
occQt copied to clipboard

Model Dragger

Open eryar opened this issue 9 years ago • 5 comments

Model Dragger is an efficient way to modify the shape's position and orientation in a 3D scene. Here is a Model Editor in a other software: Model Editor Figure 1.1 Model Editor on a Equipment Locator Handle of Model Editor Figure 1.2 Locator Handle of Model Editor

Shape Movement

You can move the shape by drag the handler in one constrain axis when mouse move on to it, as the following pictures show: Linear Movement Handles Figure 1.3 Linear Movement in the constrain direction

You can also move the shape constrained in the plane by the Planar Movement Handles: Planar Movement Figure 1.4 Planar Movement

Shape Rotation

You can rotate the shape by the Rotation Handles, Rotation Handles Figure 1.5 Rotation Handles

OpenSceneGraph Dragger for Reference

In OpenSceneGraph this are some Draggers to edit the model's position, such as: 1.TabPlaneDragger in OpenSceneGraph TabPlaneDragger in OpenSceneGraph

2.TabPlaneTrackballDragger in OpenSceneGraph TabPlaneTrackballDragger in OpenSceneGraph

3.TrackballDragger in OpenSceneGraph TrackballDragger in OpenSceneGraph

4.Translate1DDragger in OpenSceneGraph Translate1DDragger in OpenSceneGraph

5.Translate2DDragger in OpenSceneGraph Translate2DDragger in OpenSceneGraph

6.TranslateAxisDragger in OpenSceneGraph TranslateAxisDragger in OpenSceneGraph

Conclusion

Model Dragger is a tool to modify the shape's position and orientation in 3D software. I will implement such tool in occQt, If you are interested, you can join in!

eryar avatar Aug 08 '15 13:08 eryar

OpenCASCADE7.1.0 introduce AIS_Mainpulator to do this. I will update occQt by using occt7.1.0 soon.

eryar avatar Dec 09 '16 08:12 eryar

Hi I have been trying to use your great example with OCCT 7.2.0. I was able to get it to build by adding an extra bool parameters to some of the OCC calls. But although it runs it crashes when I try to create an object like a cone.

loopless avatar Nov 13 '17 19:11 loopless

@loopless You can send more details of the crashes to me, maybe I can find the problem.

eryar avatar Nov 14 '17 14:11 eryar

Found the problem... a simple typo mistake on my part when "porting" to 7.2.0.

loopless avatar Nov 14 '17 17:11 loopless

ok. 在2017年11月15 01时10分, "loopless"[email protected]写道:

Found the problem... a simple typo mistake on my part when "porting" to 7.2.0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

eryar avatar Nov 15 '17 01:11 eryar