mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-26 17:15:52 +00:00
Update group syntax
This commit is contained in:
parent
f1e23508ae
commit
37402d5f4e
@ -71,7 +71,7 @@ where
|
||||
}
|
||||
|
||||
pub trait Union {
|
||||
fn union<Other>(&self, other: &Other) -> crate::Group
|
||||
fn group<Other>(&self, other: &Other) -> crate::Group
|
||||
where
|
||||
Other: Clone + Into<crate::Shape3d>;
|
||||
}
|
||||
@ -80,7 +80,7 @@ impl<T> Union for T
|
||||
where
|
||||
T: Clone + Into<crate::Shape3d>,
|
||||
{
|
||||
fn union<Other>(&self, other: &Other) -> crate::Group
|
||||
fn group<Other>(&self, other: &Other) -> crate::Group
|
||||
where
|
||||
Other: Clone + Into<crate::Shape3d>,
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ pub extern "C" fn model(_: &HashMap<String, String>) -> fj::Shape {
|
||||
let cube_a = fj::Sketch::from_points(vertices).sweep(1.0);
|
||||
let cube_b = cube_a.clone().translate([1.5, 0., 0.5]);
|
||||
|
||||
let disjoint_union = cube_a.union(&cube_b);
|
||||
let disjoint_union = cube_a.group(&cube_b);
|
||||
|
||||
disjoint_union.into()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user