BeamAdapter
Loading...
Searching...
No Matches
AdaptiveBeamVisualMapping< InputDataTypes, OutputDataTypes > Class Template Reference
Inheritance diagram for AdaptiveBeamVisualMapping< InputDataTypes, OutputDataTypes >:

Public Types

using Inherit = Mapping<InputDataTypes, OutputDataTypes>
using Index = sofa::Index
using Edge = sofa::core::topology::BaseMeshTopology::Edge
using SeqEdges = sofa::core::topology::BaseMeshTopology::SeqEdges
using Quad = sofa::core::topology::BaseMeshTopology::Quad
using SeqQuads = sofa::core::topology::BaseMeshTopology::SeqQuads
using VecIndex = sofa::type::vector<Index>
using InCoord = typename InputDataTypes::Coord
using InVecCoord = typename InputDataTypes::VecCoord
using InVecDeriv = typename InputDataTypes::VecDeriv
using InMatrixDeriv = typename OutputDataTypes::MatrixDeriv
using OutCoord = typename OutputDataTypes::Coord
using OutVecCoord = typename OutputDataTypes::VecCoord
using OutVecDeriv = typename OutputDataTypes::VecDeriv
using OutMatrixDeriv = typename OutputDataTypes::MatrixDeriv

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(AdaptiveBeamVisualMapping, InputDataTypes, OutputDataTypes), SOFA_TEMPLATE2(Mapping, InputDataTypes, OutputDataTypes))
void init () override
void bwdInit () override
void apply (const MechanicalParams *mparams, Data< OutVecCoord > &out, const Data< InVecCoord > &in) override
void applyJ (const MechanicalParams *, Data< OutVecDeriv > &, const Data< InVecDeriv > &) override
void applyJT (const MechanicalParams *, Data< InVecDeriv > &, const Data< OutVecDeriv > &) override

Public Attributes

SingleLink< AdaptiveBeamVisualMapping< InputDataTypes, OutputDataTypes >, WireBeamInterpolation< InputDataTypes >, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > l_wireBeamInterpolation
SingleLink< AdaptiveBeamVisualMapping< InputDataTypes, OutputDataTypes >, sofa::core::topology::BaseMeshTopology, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > l_quadTopology
Data< InVecCoord > d_localCenters
Data< OutVecCoord > d_circlePoints
Data< sofa::Size > d_nbPointsOnEachCircle
 Discretization of created circles.
Data< SReal > d_radius
 Radius of created circles in yz plan.
Data< SReal > d_thickness
Data< bool > d_flipNormals
 Flip Normal ? (Inverse point order when creating quad).

Protected Attributes

SeqEdges m_internalEdges
sofa::component::statecontainer::MappedObject< InputDataTypes >::SPtr m_centerState
AdaptiveBeamMapping< InputDataTypes, InputDataTypes >::SPtr m_beamMapping
bool m_bwdInitDone { false }

Member Data Documentation

◆ d_thickness

template<typename InputDataTypes, typename OutputDataTypes = sofa::defaulttype::Vec3Types>
Data<SReal> d_thickness

if not 0, add a second layer (where this value will be the distance between the two layers)