mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Add TriMesh::merge
This commit is contained in:
parent
d809428825
commit
29366b4495
@ -17,6 +17,15 @@ impl TriMesh {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
/// # Add all the triangles from another `TriMesh` to this one
|
||||
///
|
||||
/// This is literally all this method does. There's nothing fancy going on,
|
||||
/// no de-duplication, no validation. Make sure this is what you want!
|
||||
pub fn merge(mut self, other: Self) -> Self {
|
||||
self.triangles.extend(other.triangles);
|
||||
self
|
||||
}
|
||||
|
||||
/// Determine whether the mesh contains the provided triangle
|
||||
///
|
||||
/// Returns true, if a triangle with any combination of the provided points
|
||||
|
Loading…
Reference in New Issue
Block a user