mirror of https://github.com/hannobraun/Fornjot
parent
32d0ad95ce
commit
c5cffd4562
|
@ -99,31 +99,6 @@ impl Shape {
|
|||
object.merge_into(self)
|
||||
}
|
||||
|
||||
/// Merge the provided shape into this one
|
||||
///
|
||||
/// Returns a [`Mapping`] that maps each object from the merged shape to the
|
||||
/// merged objects in this shape.
|
||||
pub fn merge_shape(&mut self, other: &Shape) {
|
||||
for object in other.curves() {
|
||||
object.get().merge_into(self);
|
||||
}
|
||||
for object in other.surfaces() {
|
||||
object.get().merge_into(self);
|
||||
}
|
||||
for object in other.vertices() {
|
||||
object.get().merge_into(self);
|
||||
}
|
||||
for object in other.edges() {
|
||||
object.get().merge_into(self);
|
||||
}
|
||||
for object in other.cycles() {
|
||||
object.get().merge_into(self);
|
||||
}
|
||||
for object in other.faces() {
|
||||
object.get().merge_into(self);
|
||||
}
|
||||
}
|
||||
|
||||
/// Access an iterator over all curves
|
||||
///
|
||||
/// The caller must not make any assumptions about the order of curves.
|
||||
|
|
Loading…
Reference in New Issue