BHoM / BHoM/BHoM_Engine

Geometry_Engine: Mesh.Volume query for nonmanifold meshes

Open
#3,552 0 comments 0 reactions 2 assignees Claimed by @IsakNaslundBh View on GitHub
type:feature
Dominant language
C#
Stars
30
Forks
13
Avg merge
7d 10h
Merged PRs (30d)
5

Description

#### Description:

As discussed with @IsakNaslundBh, `Query.Volume(Mesh)` method yields correct results only when the mesh is manifold. However, in some scenarios it is desirable to return a value even for nonmanifold meshes (in real life scenarios meshes often have glitches and/or small gaps that do not affect the volume significantly). Therefore, in the current implementation only a warning is raised in case of nonmanifold topology, which may be a bit dangerous to less experienced users, who may simply miss the message.

As a remedy for the above, we discussed an extra Boolean method parameter, e.g. `validateInputs` that would control whether a warning or an error should be raised for nonmanifold meshes. Discussion to continue as this should not be an isolated decision, but rather a framework-wide implementation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.