Skip to main content

From profiles to a solid

A vase from start to finish, the way most surface work goes: draw the profiles, make a surface through them, close what should be closed, then thicken it into a part. The foot is a circle and the mouth an ellipse, so the wall between them is free-form: no plane, cylinder or cone. A solid loft would fill the space between the profiles; a surface loft makes the wall alone, which you then close and thicken as you choose.

1. Draw the profiles​

  1. Click Sketch and pick the XY plane. Draw a Circle on the origin and give it a diameter of 40 with Dimension. Finish sketch.
  2. Click Plane, keep Offset, pick the XY plane as the Base and set the Distance to 60. Apply.
  3. Click Sketch and pick the new plane. Draw an Ellipse on the origin, make it Horizontal, and dimension its two semi-radii 35 and 20. Finish sketch.

A circle 40 across on the XY plane and an ellipse 70 by 40 sixty above it

The code behind it
vase.part.js
import { sketch, circle, ellipse, plane, origin } from 'fluidcad/core';
import { coincident, diameter, horizontal, radius } from 'fluidcad/constraints';

// The foot of the vase: a circle 40 across on the XY plane, centred on the
// origin. A closed sketch is a profile like any other: on the Surface tab
// only its curve is used, nothing is filled.
const base = sketch('xy', () => {
const c = circle([0, 0], 40);
coincident(c.center(), origin());
diameter(c, 40);
});

// The mouth: a plane 60 above XY, and on it an ellipse 70 by 40, centred
// on the origin, its long axis along X.
const top = plane('xy', 60);
const mouth = sketch(top, () => {
const e = ellipse([0, 0], 35, 20);
coincident(e.center(), origin());
horizontal(e);
radius(e, 35, 'x');
radius(e, 20, 'y');
});

2. Loft a surface through them​

  1. Click Loft and choose the Surface tab.
  2. Click the circle, then the ellipse, in the viewport or by their rows in the timeline. Each is one profile, in the order clicked.
  3. Apply. The timeline gains a Loft row, and the Shapes panel a Surface.

The wall is open at both ends: its rim is the two profiles, drawn as edges like a solid's.

The loft surface between the circle and the ellipse, open at both ends

The code behind it
vase.part.js
import { sketch, circle, ellipse, plane, loft, origin } from 'fluidcad/core';
import { coincident, diameter, horizontal, radius } from 'fluidcad/constraints';

// The foot of the vase: a circle 40 across on the XY plane, centred on the
// origin. A closed sketch is a profile like any other: on the Surface tab
// only its curve is used, nothing is filled.
const base = sketch('xy', () => {
const c = circle([0, 0], 40);
coincident(c.center(), origin());
diameter(c, 40);
});

// The mouth: a plane 60 above XY, and on it an ellipse 70 by 40, centred
// on the origin, its long axis along X.
const top = plane('xy', 60);
const mouth = sketch(top, () => {
const e = ellipse([0, 0], 35, 20);
coincident(e.center(), origin());
horizontal(e);
radius(e, 35, 'x');
radius(e, 20, 'y');
});

// Loft on its Surface tab, through the circle and then the ellipse: a
// free-form wall, open at both ends. Its rim is the two profiles: the circle
// at the start, the ellipse at the end.
const skin = loft(base, mouth).surface();

3. Close the bottom with a fill​

  1. Open the Surfaces menu and click Fill.
  2. Click the wall's bottom rim, the circle. Boundary takes it, and since it closes on itself the flat face previews at once.
  3. Leave Join chosen at the top of the dialog and click Apply.

The fill runs along the wall's rim, so it joins the wall: the Shapes panel still lists one Surface, now a vase with only its mouth open. Seen from below:

The vase seen from below, its bottom closed by the fill

The code behind it
vase.part.js
import { sketch, circle, ellipse, plane, loft, fill, origin } from 'fluidcad/core';
import { coincident, diameter, horizontal, radius } from 'fluidcad/constraints';

// The foot of the vase: a circle 40 across on the XY plane, centred on the
// origin. A closed sketch is a profile like any other: on the Surface tab
// only its curve is used, nothing is filled.
const base = sketch('xy', () => {
const c = circle([0, 0], 40);
coincident(c.center(), origin());
diameter(c, 40);
});

// The mouth: a plane 60 above XY, and on it an ellipse 70 by 40, centred
// on the origin, its long axis along X.
const top = plane('xy', 60);
const mouth = sketch(top, () => {
const e = ellipse([0, 0], 35, 20);
coincident(e.center(), origin());
horizontal(e);
radius(e, 35, 'x');
radius(e, 20, 'y');
});

// Loft on its Surface tab, through the circle and then the ellipse: a
// free-form wall, open at both ends. Its rim is the two profiles: the circle
// at the start, the ellipse at the end.
const skin = loft(base, mouth).surface();

// Surfaces › Fill with the wall's bottom rim in Boundary: a flat face inside
// the circle. The rim is the wall's, so the fill joins it: one surface, a
// vase with its mouth still open. From here on `vase` names that surface.
const vase = fill(skin.startEdges());

Fill has the rest: tangent and curvature-continuous fills, guides, and .new() to keep the fill apart.

4. Thicken it into a solid​

  1. Open the Surfaces menu and click Thicken.
  2. Click the Fill row in the timeline. The row holds the vase, so Surfaces takes the whole of it; a click on one face in the viewport would take that face alone.
  3. Set the Thickness to -2 and click Apply.

The faces' normals point out of the vase, so a positive thickness would grow the wall outward, past the sketched sizes. A negative one grows it inward: the outside stays 40 across at the foot and 70 by 40 at the mouth, and the wall is 2 thick inside it. The preview shows the side before you apply. The vase is now one solid, ready for fillet, shell or an STL export like any other.

The thickened vase: one solid with a 2 mm wall

The code behind it
vase.part.js
import { sketch, circle, ellipse, plane, loft, fill, thicken, origin } from 'fluidcad/core';
import { coincident, diameter, horizontal, radius } from 'fluidcad/constraints';

// The foot of the vase: a circle 40 across on the XY plane, centred on the
// origin. A closed sketch is a profile like any other: on the Surface tab
// only its curve is used, nothing is filled.
const base = sketch('xy', () => {
const c = circle([0, 0], 40);
coincident(c.center(), origin());
diameter(c, 40);
});

// The mouth: a plane 60 above XY, and on it an ellipse 70 by 40, centred
// on the origin, its long axis along X.
const top = plane('xy', 60);
const mouth = sketch(top, () => {
const e = ellipse([0, 0], 35, 20);
coincident(e.center(), origin());
horizontal(e);
radius(e, 35, 'x');
radius(e, 20, 'y');
});

// Loft on its Surface tab, through the circle and then the ellipse: a
// free-form wall, open at both ends. Its rim is the two profiles: the circle
// at the start, the ellipse at the end.
const skin = loft(base, mouth).surface();

// Surfaces › Fill with the wall's bottom rim in Boundary: a flat face inside
// the circle. The rim is the wall's, so the fill joins it: one surface, a
// vase with its mouth still open. From here on `vase` names that surface.
const vase = fill(skin.startEdges());

// Surfaces › Thicken with the vase picked and a thickness of -2. The faces'
// normals point out of the vase, so a negative thickness grows the wall
// inward and the outside keeps the sketched sizes. The solid takes the
// surface's place.
thicken(-2, vase);

Where to go from here​