mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-13 06:18:27 +00:00
Store the original face in FaceApprox
This enables code dealing with `FaceApprox` to load data about the face from layers, which means `FaceApprox` can now be simplified by removing the color.
This commit is contained in:
parent
c6c4a6ce32
commit
5fad335620
@ -104,6 +104,7 @@ impl Approx for Handle<Face> {
|
||||
let color = self.region().get_color(core);
|
||||
let coord_handedness = self.coord_handedness(&core.layers.geometry);
|
||||
FaceApprox {
|
||||
face: self,
|
||||
exterior,
|
||||
interiors,
|
||||
color,
|
||||
@ -115,6 +116,9 @@ impl Approx for Handle<Face> {
|
||||
/// An approximation of a [`Face`]
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd)]
|
||||
pub struct FaceApprox {
|
||||
/// The [`Face`], that this approximates
|
||||
pub face: Handle<Face>,
|
||||
|
||||
/// Approximation of the exterior cycle
|
||||
pub exterior: CycleApprox,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user