You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really struggling to make any sense how the projectionDir option works in exporting a SVG. The documentation tells me: Direction the camera will view the shape from., but how is that direction defined?
When you run this in cq-editor you will get the following SVG
But I want that image 90 degrees rotated like so
But I can't get my head around how to do that. Are there any examples how projectionDir works and how to use it? It would be really nice if it was possible to define the rotations about the XYZ like you can when assembling parts.
The text was updated successfully, but these errors were encountered:
angles= (-90, 90, 0) # <-- this should be configurable, now just for testingT=gp_Trsf()
q=gp_Quaternion()
q.SetEulerAngles(gp_Extrinsic_XYZ, *map(radians, angles))
T.SetRotation(q)
iffocusisnotNone:
projector=HLRAlgo_Projector(coordinate_system, focus)
else:
projector=HLRAlgo_Projector(T, False, 0.0)
By changing the angles, I can basically create any view I want.
I'm really struggling to make any sense how the
projectionDir
option works in exporting a SVG. The documentation tells me:Direction the camera will view the shape from.
, but how is that direction defined?Imagine the following example
When you run this in cq-editor you will get the following SVG
But I want that image 90 degrees rotated like so
But I can't get my head around how to do that. Are there any examples how
projectionDir
works and how to use it? It would be really nice if it was possible to define the rotations about the XYZ like you can when assembling parts.The text was updated successfully, but these errors were encountered: