Skip to content

Add movementbody mesh creation#1395

Merged
Grantim merged 6 commits intomasterfrom
Add_movementbody_mesh_creation
Jul 6, 2023
Merged

Add movementbody mesh creation#1395
Grantim merged 6 commits intomasterfrom
Add_movementbody_mesh_creation

Conversation

@Grantim
Copy link
Contributor

@Grantim Grantim commented Jul 6, 2023

No description provided.

Grant Karapetyan added 5 commits July 5, 2023 15:16
@Grantim Grantim requested a review from Fedr July 6, 2023 18:01

// append points to mesh and connect them
// returns first EdgeId of new edges
MRMESH_API EdgeId addSeparateContours( const Contours3f& contours, const AffineXf3f* shift = nullptr );
Copy link
Contributor

Choose a reason for hiding this comment

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

shift -> xf

MR_TIMER;

auto bodyContours = body.contours();
auto trajectoryContours = trajectory.contours();
Copy link
Contributor

Choose a reason for hiding this comment

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

if we use only contours here, probably take them on input instead of Polyline3?

/// if not set body accumulative normal is used
std::optional<Vector3f> bodyNormal;
/// optional transform trajectory space to body space
const AffineXf3f* t2bXf{ nullptr };
Copy link
Contributor

Choose a reason for hiding this comment

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

do we really need it? The user can transform either the input contours, or transform resulting mesh

@Grantim Grantim merged commit dc0ea1e into master Jul 6, 2023
@Grantim Grantim deleted the Add_movementbody_mesh_creation branch July 6, 2023 18:49
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