Skip to content
Snippets Groups Projects
Commit 4577ee1a authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Use center + extents in AABB.xml

parent 71f24d57
No related branches found
No related tags found
2 merge requests!140armem/dev -> master,!133Add Object Memory with Class and Instance Segments
......@@ -9,8 +9,11 @@ The ARON DTO of simox::AxisAlignedBoundingBox.
<GenerateTypes>
<Object name="simox::arondto::AxisAlignedBoundingBox">
<ObjectChild key='limits'>
<EigenMatrix rows="3" cols="2" type="float" />
<ObjectChild key="center">
<Position />
</ObjectChild>
<ObjectChild key="extents">
<Position />
</ObjectChild>
</Object>
......
......@@ -4,12 +4,14 @@
void simox::fromAron(const arondto::AxisAlignedBoundingBox& dto, AxisAlignedBoundingBox& bo)
{
bo.limits() = dto.limits;
bo.center() = dto.center;
bo.extents() = dto.extents;
}
void simox::toAron(arondto::AxisAlignedBoundingBox& dto, const AxisAlignedBoundingBox& bo)
{
dto.limits = bo.limits();
dto.center = bo.center();
dto.extents = bo.extents();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment