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 position/orientation results #128

Merged
merged 3 commits into from
Nov 23, 2023
Merged

Fix position/orientation results #128

merged 3 commits into from
Nov 23, 2023

Conversation

GerhardHippmann
Copy link
Collaborator

  • Enable position and orientation result signals for all user-defined Object3Ds, independently of visualisation/animation configuration
  • Replace orientation result matrix R_abs -> Cardan angles rot123_abs

- Enable position and orientation result signals for all user-defined Object3Ds, independently of visualisation/animation configuration
- Replace orientation result matrix R_abs -> Cardan angles rot123_abs
Comment on lines +646 to +652
function isVisible(obj::Object3D{F})::Bool where F <: Modia3D.VarFloatType
if isSolid(obj) || isVisual(obj)
return !isnothing(obj.feature.visualMaterial) && !isnothing(obj.feature.shape)
else
return false
end
end
Copy link
Member

Choose a reason for hiding this comment

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

Please, check if a default return type is needed outside of if/else with (code_warntype).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

'code_warntype' does not report an issue with the explicitly defined return type 'Bool'.

@@ -436,8 +436,8 @@ end


function exportAnimation(scene)
Copy link
Member

Choose a reason for hiding this comment

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

Please, define return type and scene::Scene{F} in function.

@GerhardHippmann
Copy link
Collaborator Author

@AndreaNeumayr Bug in dependencies has been fixed. So from my point of view we can release now. Please do not forget to update release notes, version numbers and dates.

@AndreaNeumayr AndreaNeumayr merged commit 1ef9248 into main Nov 23, 2023
2 checks passed
@GerhardHippmann GerhardHippmann deleted the gh_fixPositionResults branch January 17, 2024 15:12
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.

2 participants