Profile Based Shapes/cs

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Předmluva

Na této stránce je třeba rozlišovat mezi objekty v programu FreeCAD a reálnými předměty, které vznikají operací zvanou vytlačování.

Na této stránce se termín extruze/extrudovaný objekt bude používat pro objekty dokumentu nebo objekty stromu v programu FreeCAD, jako jsou objekty typu Part Vysunutí a objekty typu Part Design Deska, zatímco termín extruze/extrudovaná položka označuje položky reálného světa, které jsou při modelování ve smontovaném stavu obvykle objekty typu protažení.

Nástroje pro protažení v programu FreeCAD využívají vlastnost cesty nazývanou Páteř (podobně jako páteř kostry). Tento termín pochází z dob, kdy se návrhy vytvářely ručně. Pro dosažení vyššího rozlišení tvarů bylo nutné nakreslit více řezů a hustá řada identických profilů připomínala kostru hada. Viz Sledování profilů. Na této stránce se upřednostňuje termín Páteř před termínem cesta.

Úvod

Návrh založený na profilu vychází z principu sledování pohybu profilu ve 3D prostoru za účelem vytvoření 3D tvarů, a to buď podél 3D křivky, nebo pomocí několika podpůrných 2D křivek. Tato stránka se snaží správně pojmenovat a popsat několik typů tvarů v souladu s terminologií deskriptivní geometrie, a to společně s nástroji FreeCADu, které lze použít k vytvoření dané geometrie. Mějte na paměti, že terminologie deskriptivní geometrie a názvy nástrojů FreeCADu se ne vždy shodují (viz úvod výše o extruzi).

Pokud narazíte na nevhodně zvolené výrazy, neváhejte je opravit.

Některé nástroje rozlišují mezi profilem a průřezem u otevřené nebo uzavřené 2D kontury (čára, oblouk, kruh nebo lomená čára), pokud se používá více než jedna kontura. První z nich se vždy nazývá profil, volitelné nebo povinné další se nazývají průřezy. Stránky na Wikipedii často používají pro druhé z nich termín příčný řez, aby se předešlo záměně s významem průřez jako pohledu v řezu, a totéž platí i pro tuto stránku.

Návrh založený na profilu

Obecně existují dva základní způsoby, jak vytvořit 3D tvary z 2D obrysů: Trasováním obrysu podél osy a rozložení plochy mezi dva nebo více nosných 2D obrysů (některé nástroje sice podporují i 3D křivky, ale použití 2D křivek je osvědčená metoda již od dob ručního kreslení).

  • Tracing an invariable contour from the first profile along a spine to the last cross-section is the original way of designing sweep shapes. Modern CAD applications including FreeCAD also allow to vary its contour by using different cross-sections along the spine with their sweep tools, resulting shapes are rather transition shapes than sweep shapes.
  • Distributing a face from profile to cross-section via one or more optional supporting cross-sections (usually open contours) but without a spine is the original way to create loft shapes. Modern CAD applications including FreeCAD also allow closed contours with their loft tools but don't remind users to use identical numbers of contour segments and to align start points correctly, that's why creating loft shapes from open contours is quite self explaining in contrast to creating loft shapes from closed contours.

Traced or distributed shapes are usually hollow pipe-like shells. If both their base profile and final cross-section enclose a face they result in a closed shell, sometimes called a volume. Volumes are considered hollow, if they are filled they are called solids. Closed volumes created with Part tools are automatically considered solid shapes.

Shapes built with PartDesign features are always solids, and since open profiles usually result in surface shapes they currently cannot be used to create PartDesign features.

Prismatic shapes

Prismatic shapes have invariable cross-sections traced along a straight line/vector, and we have to decide if we need a surface shape or a solid shape.

Tracing along a straight line/vector is called extrusion (Part) or padding (PartDesign) in FreeCAD.

Prismatic surface shapes

Prismatic surface shapes can be created with Part Extrude. The elements of the profile have an influence on the resulting shape:

  • A single straight line results in a planar face.
  • A circle or an arc results in a closed or open cylindric face.
  • A polyline results in a shell, a shape made of connected faces

Profiles (green), extrusion vector (yellow), and resulting shapes

Prismatic solid shapes

Prismatic solid shapes (also called prismoids) can be created with Part Extrude, too if the option Create solid is checked, or with PartDesign Pad.

Closed profiles from above and resulting Part shapes with option Create solid enabled

See PartDesign Examples for more prismatic solids.

Another tool to to create prismatic solid shapes is provided by the external SheetMetal workbench: Make Base Wall creates planar objects (blanks) from closed contours and unfoldable bend objects from open contours.

/

Right: Closed profiles (nested included) result in blanks having a thickness / Left: Open profiles result in profile objects having a thickness and a length

Rotated shapes

Rotated shapes have invariable cross-sections traced around an axis (which is the same as along a circular line) and we have again to decide if we need a surface shape or a solid shape.

Tracing around an axis is called revolving in FreeCAD.

Rotatated surface shapes

Rotated surface shapes can be created with Part Revolve. The elements of the profile have an influence on the resulting shape:

  • A single straight results in a cylindric, a conical, or a planar face.
  • A circle or an arc results in a closed or open section of a torus surface.
  • A polyline results in a rotation shell, a shape made of connected faces of the above types.

Profiles (green), rotation axis (yellow), and resulting shapes

Rotatated solid shapes

Rotatated solid shapes (also called toroids) can be created with Part Revolve, too if the option Create solid is checked, or with PartDesign Revolution.

Closed profiles from above and resulting Part shapes with option Create solid enabled

See PartDesign Examples for rotated solids. (They show profiles distributed along a circular spine, but the resulting shapes are the same as if the profiles were rotated)

Sweep shapes

Sweep shapes have invariable cross-sections distributed and traced along a spine (the spine is a 2D or 3D backbone curve that controlls the location and normal direction of cross-sections). We have in this case as well to decide if we need a surface shape or a solid shape.

Sweep surface shapes

Sweep surface shapes can be created with Part Sweep.

Profiles (green), spine (yellow), and resulting shapes)

Sweep solid shapes

Sweep solid shapes can be created with Part Sweep, too if the option Create solid is checked, or with PartDesign AdditivePipe.

Closed profiles from above and resulting Part shapes with option Create solid enabled

Modeling items with a constant cross-section

Real world items that are produced by a manufacturing process called extrusion, i.e. by pushing material through a die, are usually modeled in their assembled condition and in their manufacturing condition. This also applies to items produced by rolling.

  • Assembled condition: In most cases a 3D bent shape is modeled by sweeping a profile along a 3D curve.
  • Manufacturing condition: A prismoid shape is modeled by extruding or padding a profile (which in fact is sweeping a profile along a straight line).

In relation with CAD to extrude usually means to distribute a profile along a straight line or vector. Even open profiles with no thickness can be extruded, which is impossible in the real world.

An L-shaped roll-formed and bent frame modelled with Part Sweep, with a mounted sealing profile (a sweep object with a nested contour) made with PartDesign AdditivePipe, both based on the same spine

Prismatic and rotated shapes can be created with the sweep tools as well if lines, and arcs or circles are used as spines. See PartDesign Examples.

Tracing profiles

What does a CAD application do in the background? As stated above, we supply the profile and some kind of spine and the sweep tools do the uncomfortable work:

  1. Distributing the profile:
    • Creating working planes normal to the spine in each knot (start/end point) of spine segments.
    • Copying profiles, i.e. redrawing the profile on a working plane.
  2. The actual tracing:
    • Connecting the related points of profile and cross-section(s) with curves that run parallel to the spine (equidistant curves).
    • Filling the faces between a profile segment, a cross-section segment, and two connection lines/curves.
    • Filling faces inside the profile and the last cross-section to close the shell into a volume and create a solid.

To visualize the steps we use a profile similar to the "Hamburger Zipfel" that has taught generations of automotive students how to distribute and trace sealing profiles manually.

Profile (green), spine (yellow), normal planes on start/end points of segments (light blue), cross-sections (light green), connecting curves (grey), and faces (blue) in order of appearance

FreeCAD's sweep tools allow to use profiles that do not lie on planes that are normal to the spine, but they are still controlled by the virtual working planes. This should be avoided as this leads to kinks in the object surfaces:

Profile tilted out of the normal plane (purple) and the resulting shape in comparison with the previous example (grey profile and dashed lines); the kinks are clearly visible

Notes on spines

  • Spines alone are not able to control the X-direction of the (virtual) working planes and as a consequence the alignment of the cross-sections. Some more conditions apply:
    • The origin of a (virtual) working plane is on the spine and its normal/Z-axis is collinear to the tangent of the spine in this point.
    • Straight segments keep the direction of X-axes parallel (and all normals/Z-axes are collinear).
    • Circular segments keep a constant angle between X-axes and the lines connecting origin and arc center.
    • Arbitrary curve segments work like circular segments in principle but they do not refer to the same (virtual) center point between their limits. Varying center points along the spine may result in unwanted twists of the shape.
  • To control the X-direction of the (virtual) working planes independently from internal conditions another curve can be used. PartDesign AdditivePipe has an Auxiliary option that uses a guide curve (auxiliary spine) to control the X-direction. (Activating the Auxiliary mode opens a "Profile" box to add the guide curve)

This example uses a straight spine (yellow) and a guide curve (orange) that is a quarter turn of a helix around the spine to demonstrate the principle how a guide curve twists a profile around the spine

Why could a sweep operation fail?

A too small radius: If the radius of the spine is too small the cross-sections will intersect resulting in non-manifold geometry, but to a certain degree the sweep tools are able to render a shape anyway:

Profile and intersecting cross-sections resulting in an impossible shape

View from a different angle and bottom view. If the spine's radius is further decreased so that the yellow face would completely lie inside the shape, the sweep tools can no longer render or update the shape

Loft shapes

Loft shapes usually connect a profile and a cross-section with a different shape without a spine so that they in general have varying cross-sections. They are rather used to create a transition shape between profile and cross-Section. FreeCAD's loft tools Part Loft and PartDesign AdditiveLoft use straight lines as connecting curves for a profile and a single cross-section, or 3D splines in case of several cross-sections. The latter can be switched to straight lines, too by activating the Ruled Surface option.

All cross-sections have to be placed in 3D space manually.

Loft surface shapes

Loft surface shapes can be created with Part Loft

Loft solid shapes

Loft solid shapes can be created with Part Loft, too if the Create solid option is checked, or with PartDesign AdditiveLoft.

Lofts from identical profiles

Loft shapes from identical profiles usually don't make much sense, but they are included here for a rough comparison with sweep shapes.

Profile and cross-sections of the sweep distribution example used as loft profiles (dashed lines represent the sweep shape). Right: default settings. Left: Ruled surface option activated

Scaled shapes

Some tools allow to select a point (or a sketch containing only a single point) for either the profile or the last cross-section to grow or respectively shrink a profile from the profile to the cross-section. This is a way to model pyramids, cones (both regular and tilted), or horns

Truncated pyramids, cones, or horns require to copy and scale the profile to create one or more cross-sections, with subshape binders for instance.

Drafted shapes

Transition shapes