-
Notifications
You must be signed in to change notification settings - Fork 366
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
New LeafTransform3D
, replacing OutOfTreeTransform3D
#7015
Changes from all commits
6a151d2
189f26b
cbdb67d
570206e
90a64cf
2e7b948
0c54020
692d72a
4a38c07
539529d
73d9a2a
a5bc96f
6bebb13
2bc2a65
392ba3a
dfefab8
9167a31
7f44b5a
dd9d505
ea1c85b
9864884
6e06051
02cd0bc
5baf54a
8ffab40
a7cf020
2f63ba2
bff1eb0
d978da3
111d601
0e22047
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
namespace rerun.archetypes; | ||
|
||
|
||
/// One or more transforms between the parent and the current entity which are *not* propagated in the transform hierarchy. | ||
/// | ||
/// For transforms that are propagated in the transform hierarchy, see [archetypes.Transform3D]. | ||
/// | ||
/// If both [archetypes.LeafTransforms3D] and [archetypes.Transform3D] are present, | ||
/// first the tree propagating [archetypes.Transform3D] is applied, then [archetypes.LeafTransforms3D]. | ||
/// | ||
/// Currently, most visualizers support only a single leaf transform per entity. | ||
/// Check archetype documentations for details - if not otherwise specified, only the first leaf transform is applied. | ||
/// | ||
/// From the point of view of the entity's coordinate system, | ||
/// all components are applied in the inverse order they are listed here. | ||
/// E.g. if both a translation and a max3x3 transform are present, | ||
/// the 3x3 matrix is applied first, followed by the translation. | ||
/// | ||
/// \example archetypes/leaf_transforms3d_combined title="Regular & leaf transform in tandom" image="https://static.rerun.io/leaf_transform3d/41674f0082d6de489f8a1cd1583f60f6b5820ddf/1200w.png" | ||
table LeafTransforms3D ( | ||
"attr.rust.derive": "Default, PartialEq", | ||
"attr.rust.generate_field_info", | ||
"attr.docs.category": "Spatial 3D", | ||
"attr.docs.view_types": "Spatial3DView, Spatial2DView: if logged above active projection" | ||
) { | ||
/// Translation vectors. | ||
translations: [rerun.components.LeafTranslation3D] ("attr.rerun.component_optional", nullable, order: 1100); | ||
|
||
/// Rotations via axis + angle. | ||
rotation_axis_angles: [rerun.components.LeafRotationAxisAngle] ("attr.rerun.component_optional", nullable, order: 1200); | ||
|
||
/// Rotations via quaternion. | ||
quaternions: [rerun.components.LeafRotationQuat] ("attr.rerun.component_optional", nullable, order: 1300); | ||
|
||
/// Scaling factors. | ||
scales: [rerun.components.LeafScale3D] ("attr.rerun.component_optional", nullable, order: 1400); | ||
|
||
/// 3x3 transformation matrices. | ||
mat3x3: [rerun.components.LeafTransformMat3x3] ("attr.rerun.component_optional", nullable, order: 1500); | ||
|
||
// TODO(andreas): Support TransformRelation? | ||
// TODO(andreas): Support axis_length? | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to see this one drawn out in a diagram some day.