Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VTK assembly render apply gp_Intrinsic_ZXY rotation #1540

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

lorenzncode
Copy link
Member

Resolves #1538

See also SetOrientation https://vtk.org/doc/nightly/html/classvtkProp3D.html

Sets the orientation of the Prop3D.

Orientation is specified as X,Y and Z rotations in that order, but they are performed as RotateZ, RotateX, and finally RotateY.

Location might instead be enhanced to provide optional parameter to set gp_EulerSequence say in toTuple. Currently hardcoding in the VTK function.

Copy link

codecov bot commented Mar 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.48%. Comparing base (153ed3f) to head (b1f99e1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1540   +/-   ##
=======================================
  Coverage   94.48%   94.48%           
=======================================
  Files          28       28           
  Lines        5780     5783    +3     
  Branches     1071     1071           
=======================================
+ Hits         5461     5464    +3     
  Misses        193      193           
  Partials      126      126           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@adam-urbanczyk adam-urbanczyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adam-urbanczyk adam-urbanczyk requested a review from jmwright March 19, 2024 20:03
Copy link
Member

@jmwright jmwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well for me. Thanks @lorenzncode

@jmwright jmwright merged commit 00fdd71 into CadQuery:master Mar 19, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[need help] A few questions on the door assembly's constraints in the docs' Assembly tutorial section
3 participants