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

Viewer3D: Adjust bounding-box by moving faces #2385

Merged
merged 1 commit into from May 12, 2024

Conversation

elyasbny
Copy link

Description

Implemented this feature, one can now adjust the bounding-box by clicking on an moving the points which are in the center of the surfaces.

Implementation remarks

I implemented two different entities, one for surfaces that are located in the direction of the axis, and one for the other surfaces. I did it, as it seemed to be a simple way to tackle the different behaviour of these surfaces when I wanted to move them. There is maybe a better way to do this.

@@ -541,6 +550,131 @@ Entity {
}
}

// MOVE SURFACE ENTITY (surfaces on axis direction)
Entity {
id: surface1MoveEntity
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename both entities ids to something more explicit ? Also, can you add a line or two explaining what is a "surface on axis direction". It may be clear in your head, but not for the next reader.

@fabiencastan fabiencastan merged commit bfea635 into develop May 12, 2024
4 checks passed
@fabiencastan fabiencastan deleted the Viewer3DBoundingBox branch May 12, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants