Closed johhell closed 8 months ago
tried to understand Modia3D and found some functions are not clear for me.
Modia3D
function revertRevoluteKind defines 2 parameters, but oldChild::Object3D{F} is never used.
revertRevoluteKind
oldChild::Object3D{F}
https://github.com/ModiaSim/Modia3D.jl/blob/33856e3b785f3116162de2c5cae7e0505ec61897/src/Composition/joints/Revolute.jl#L82
This function is used in joints.jl in function jointSpecificTreatment https://github.com/ModiaSim/Modia3D.jl/blob/33856e3b785f3116162de2c5cae7e0505ec61897/src/Composition/joints/joints.jl#L866 with 2 parameters (oldChild, newChild)
joints.jl
jointSpecificTreatment
(oldChild, newChild)
The function jointSpecificTreatment is used in handler.jl in jointSpecificTreatment!(newChild, oldChild) https://github.com/ModiaSim/Modia3D.jl/blob/33856e3b785f3116162de2c5cae7e0505ec61897/src/Composition/handler.jl#L174
handler.jl
jointSpecificTreatment!(newChild, oldChild)
newChild here is the first parameter. all other functions uses the order (oldChild, newChild)
newChild
Thanks for your hints. I'll change that.
See #140
tried to understand
Modia3D
and found some functions are not clear for me.revolute.jl
function
revertRevoluteKind
defines 2 parameters, butoldChild::Object3D{F}
is never used.https://github.com/ModiaSim/Modia3D.jl/blob/33856e3b785f3116162de2c5cae7e0505ec61897/src/Composition/joints/Revolute.jl#L82
joints.jl
This function is used in
joints.jl
in functionjointSpecificTreatment
https://github.com/ModiaSim/Modia3D.jl/blob/33856e3b785f3116162de2c5cae7e0505ec61897/src/Composition/joints/joints.jl#L866 with 2 parameters(oldChild, newChild)
handler.jl
The function
jointSpecificTreatment
is used inhandler.jl
injointSpecificTreatment!(newChild, oldChild)
https://github.com/ModiaSim/Modia3D.jl/blob/33856e3b785f3116162de2c5cae7e0505ec61897/src/Composition/handler.jl#L174newChild
here is the first parameter. all other functions uses the order(oldChild, newChild)