mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-24 16:15:56 +00:00
Remove fj::Sweep::color
It's not necessary, as it's just an alias for a method that is almost as easy to access. And it's confusing, as it implies that a sweep has its own color that's potentially separate from the swept shape.
This commit is contained in:
parent
45269c8d0d
commit
13b201bab9
@ -10,7 +10,7 @@ impl ToShape for fj::Sweep {
|
||||
self.shape().to_shape(tolerance, debug_info),
|
||||
Vector::from([0., 0., self.length()]),
|
||||
tolerance,
|
||||
self.color(),
|
||||
self.shape().color(),
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -113,11 +113,6 @@ impl Sweep {
|
||||
pub fn length(&self) -> f64 {
|
||||
self.length
|
||||
}
|
||||
|
||||
/// Access the color of the shape being swept
|
||||
pub fn color(&self) -> [u8; 4] {
|
||||
self.shape().color()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Sweep> for Shape {
|
||||
|
Loading…
Reference in New Issue
Block a user