Skip to main content

wrap()

Wraps the given sketch onto a curved face, raising it from the surface by the given thickness (emboss). Chain .remove() to sink it into the surface instead (deboss), or .new() to keep the wrapped pad standalone. The sketch is developed onto the surface with its lengths preserved — a true wrap, not a projection. Cylindrical and conical faces are supported.

Returns: Wrap

tip

See the guide for detailed usage examples.

Signatures

wrap(thickness: NumberParam, sketch: SceneObject, face: SceneObject): Wrap

Wraps the given sketch onto a curved face, raising it from the surface by the given thickness (emboss). Chain .remove() to sink it into the surface instead (deboss), or .new() to keep the wrapped pad standalone. The sketch is developed onto the surface with its lengths preserved — a true wrap, not a projection. Cylindrical and conical faces are supported.

ParameterTypeDescription
thicknessNumberParamPad thickness measured along the surface normal (must be positive)
sketchSceneObjectThe sketch to wrap onto the face
faceSceneObjectThe target face to wrap onto

Examples

import { sketch, plane, text, move, select, wrap, cylinder } from 'fluidcad/core';
import { face } from 'fluidcad/filters';

cylinder(25, 60);
const target = select(face().cylinder());

const decal = sketch(plane("front", 25), () => {
move([0, 24]);
text("FLUID").size(12);
});

wrap(1, decal, target);

wrap example