-
Notifications
You must be signed in to change notification settings - Fork 567
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
Obtaining the area of a mesh section #2214
Comments
Hey, I think you want |
Amazing, I will test it out and see if it works!! Thanks a lot! |
I'm getting the following error:
|
Ah you have to move it to a plane from 3D:
|
Works like a charm, just for refererence I ended up with: slice = mesh.section(
plane_normal=n,
plane_origin=p,
)
if slice is not None:
area = sum(p.area for p in slice.to_planar()[0].polygons_full)
else:
area = 0.0 If plane does not intersect you get None and it errors out. Thanks a lot for the help! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to get the area of the intersection of a mesh with a plane. Right now I am using the following code to get the section:
Is it possible to get instead of the outline of the section a filled polygon? Is it possible to get a mesh from a Path3D?
The text was updated successfully, but these errors were encountered: