Skip to main content

imprint

Function imprint 

Source
pub fn imprint(
    model: &mut NamedModel,
    namer: &Namer,
    a: Body,
    b: Body,
    params: RemeshParams,
) -> GeopResult<Vec<EdgeId>>
Expand description

Imprints the bodies a and b onto each other: every face of each is divided along the curves where the other’s boundary crosses it, and both are kept, sharing nothing. Returns a’s edges along those curves.

What the imprint creates is named as a boolean names it (see naming), and a’s edges and vertices along the curves keep those names. b’s copies of them are named N(X) for the name X they share.

Fails, leaving both bodies as they were, if the bodies’ boundaries do not meet: there is nothing to imprint.