mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-13 22:38: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 color = self.region().get_color(core);
|
||||||
let coord_handedness = self.coord_handedness(&core.layers.geometry);
|
let coord_handedness = self.coord_handedness(&core.layers.geometry);
|
||||||
FaceApprox {
|
FaceApprox {
|
||||||
|
face: self,
|
||||||
exterior,
|
exterior,
|
||||||
interiors,
|
interiors,
|
||||||
color,
|
color,
|
||||||
@ -115,6 +116,9 @@ impl Approx for Handle<Face> {
|
|||||||
/// An approximation of a [`Face`]
|
/// An approximation of a [`Face`]
|
||||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd)]
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd)]
|
||||||
pub struct FaceApprox {
|
pub struct FaceApprox {
|
||||||
|
/// The [`Face`], that this approximates
|
||||||
|
pub face: Handle<Face>,
|
||||||
|
|
||||||
/// Approximation of the exterior cycle
|
/// Approximation of the exterior cycle
|
||||||
pub exterior: CycleApprox,
|
pub exterior: CycleApprox,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user