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

Measuring tool #35

Open
bb1950328 opened this issue Mar 16, 2021 · 0 comments
Open

Measuring tool #35

bb1950328 opened this issue Mar 16, 2021 · 0 comments
Labels
💡 new feature A new feature or idea

Comments

@bb1950328
Copy link
Owner

A tool to measure various distances can be very useful. The user selects two points and BrickSim outputs the distance between them. These points can be:

  • Edges
  • Triangles
  • Center of axle holes, studs or other circles

Algorithm to get the point under the mouse probably will be something like:

  1. Get the etree::Node under the mouse using the selection buffer
  2. Cast a ray and check for intersections of LdrTriangles or LdrLines or primitives like studs
  3. Display the currently chosen point so the user sees what he will be clicking.

And angle or area measurement can be useful too. The possibility to restrict the measuring to one or two dimensions would be nice too (for example to measure the X difference between two points without taking Y and Z into account)

@bb1950328 bb1950328 added the 💡 new feature A new feature or idea label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 new feature A new feature or idea
Projects
None yet
Development

No branches or pull requests

1 participant