Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::geometric::GeomShape Class Reference

Geometric shape. More...

#include <arcane/geometry/GeomShape.h>

Public Member Functions

GeomShapeMutableView toMutableView ()
 Modifiable view of this instance.
Hexaedron8ShapeView initFromHexaedron8 (Hexaedron8ElementConstView hexa)
 Initializes the shape with a hexahedron hexa and returns a view of it.
Quad4ShapeView initFromQuad4 (Quad4ElementConstView quad)
 Initializes the shape with a quadrangle quad and returns a view of it.

Protected Member Functions

void _setArray (GeomShapeView &shape)

Friends

class GeomShapeView

Detailed Description

Geometric shape.

This class is only used to create a temporary geometric shape. For a geometric shape derived from a cell, you must go through the GeomShapeMng.

An instance of this class allows storing the information necessary for a geometric shape.

It is possible to directly initialize a geometric shape from a hexahedron (initFromHexaedron8()) or a quadrangle (initFromQuad4()). These methods initialize the shape and return a view of it.

GeomShape shape;
HexaElement hexa;
GeomShapeView shape_view = shape.initFromHexaedron8(hexa);
Hexaedron8ShapeView initFromHexaedron8(Hexaedron8ElementConstView hexa)
Initializes the shape with a hexahedron hexa and returns a view of it.

Definition at line 52 of file GeomShape.h.

Member Function Documentation

◆ _setArray()

void Arcane::geometric::GeomShape::_setArray ( GeomShapeView & shape)
inlineprotected

Definition at line 74 of file GeomShape.h.

◆ initFromHexaedron8()

Hexaedron8ShapeView Arcane::geometric::GeomShape::initFromHexaedron8 ( Hexaedron8ElementConstView hexa)

Initializes the shape with a hexahedron hexa and returns a view of it.

Definition at line 519 of file GeomShapeView.cc.

References Arcane::geometric::GeomShapeStdBuilder::computeNodePositionFromHexa(), and toMutableView().

◆ initFromQuad4()

Quad4ShapeView Arcane::geometric::GeomShape::initFromQuad4 ( Quad4ElementConstView quad)

Initializes the shape with a quadrangle quad and returns a view of it.

Definition at line 538 of file GeomShapeView.cc.

References Arcane::geometric::GeomShapeStdBuilder::computeNodePositionFromQuad(), and toMutableView().

◆ toMutableView()

GeomShapeMutableView Arcane::geometric::GeomShape::toMutableView ( )
inline

◆ GeomShapeView

friend class GeomShapeView
friend

Definition at line 56 of file GeomShape.h.


The documentation for this class was generated from the following files: