Skip to main content

rasterize_model_with_face_color

Function rasterize_model_with_face_color 

Source
pub fn rasterize_model_with_face_color<S: Scalar>(
    model: &Model<S>,
    n: usize,
    face_color: impl Fn(FaceId) -> Color10,
) -> GeopResult<PrimitiveScene<S>>
Expand description

Like rasterize_model, but face_color picks each face’s color directly (by FaceId) instead of the default blue/olive untrimmed/holed convention — e.g. coloring by which solid a face belongs to, regardless of whether that face happens to have a hole.