For example: I have two cubes (grey, red) and want to draw a line(red) from an vertex of the first cube to a vertex of the second cube.
To do this, I want to split the view into two parts, in the left part should be shown the first cube, in the right part the second cube.
The start of the line should be picked in in the left part, the end of the line in the right part. Till now I succeeded in creating the two parts:
Now I can zoom by the mouse-wheel,and - different to the original window - move/rotate the view by right mouse with Shift/Strg
Code: Select all
import FreeCADGui from pivy import coin from PySide import QtCore,QtGui import os,re sg = FreeCADGui.ActiveDocument.ActiveView.getSceneGraph() v = FreeCADGui.createViewer(2, "NEU") vv0 = v.getViewer(0) vv1 = v.getViewer(1) vv0.setSceneGraph(sg) vv1.setSceneGraph(sg)
But when I try to draw the line (from left-window to right-window), the line is drawn somewhere and the snaps of the cubes do not work
Also it would be nice, if while drawing, a line is shown over both parts from starpoint to Cursor (see green line) Thanks