Core¶
The afem.core
package includes the ShapeHolder
class which is a
base type meant to hold convenient properties and methods for the
Body
and Part
types. A reference curve and surface can be
set in this class as needed by the user and a number of streamlined methods are
available for creating additional reference geometry. Included are methods to
create points and planes along the reference curve as well as projecting points
to either the reference curve or surface.
Entities¶
ShapeHolder¶
-
class
afem.core.entities.
ShapeHolder
(name, shape, cref=None, sref=None, expected_types=(<class 'afem.topology.entities.Shape'>, ))¶ Core class that holds a shape plus reference geometry and common methods.
- Parameters
name (str) – The name.
cref (afem.geometry.entities.Curve or None) – The reference curve. If it is not a
TrimmedCurve
, then it will be converted to one.sref (afem.geometry.entities.Surface or None) – The reference surface.
expected_types (Type(afem.topology.entities.Shape) or collections.Sequence(Type(afem.topology.entities.Shape))) – The expected type(s).