AGX Dynamics  2.37.3.2
agxModel::Deformable1DInitializationReport Class Reference

Initialization report kept in Deformable1D object for the user to check validity of the initial state. More...

#include <Deformable1DRoute.h>

Public Member Functions

 Deformable1DInitializationReport ()
 Create a report with values indication that no initialization has happened yet, or that the initialization failed. More...
 
 Deformable1DInitializationReport (agx::Real targetError, agx::Real maxError, agx::Real resolution, size_t numNodes)
 Construct given target (minimum) error and the actual (maximum) error from route. More...
 
agx::Real getLength () const
 
agx::Real getMaximumError () const
 
size_t getNumNodes () const
 
agx::Real getResolution () const
 
agx::Real getTargetError () const
 
void restore (agxStream::InputArchive &in)
 Restore from input archive. More...
 
void store (agxStream::OutputArchive &out) const
 Store to output archive. More...
 
agx::Bool successful () const
 

Detailed Description

Initialization report kept in Deformable1D object for the user to check validity of the initial state.

Definition at line 32 of file Deformable1DRoute.h.

Constructor & Destructor Documentation

◆ Deformable1DInitializationReport() [1/2]

agxModel::Deformable1DInitializationReport::Deformable1DInitializationReport ( )

Create a report with values indication that no initialization has happened yet, or that the initialization failed.

Deformable1DInitializationReport::successful will return false for this initialization report.

◆ Deformable1DInitializationReport() [2/2]

agxModel::Deformable1DInitializationReport::Deformable1DInitializationReport ( agx::Real  targetError,
agx::Real  maxError,
agx::Real  resolution,
size_t  numNodes 
)

Construct given target (minimum) error and the actual (maximum) error from route.

Member Function Documentation

◆ getLength()

agx::Real agxModel::Deformable1DInitializationReport::getLength ( ) const
Returns
The total length of the created segments. May be different from the total distances between the routing node positions due to divisibility.

◆ getMaximumError()

agx::Real agxModel::Deformable1DInitializationReport::getMaximumError ( ) const
Returns
the maximum error after routing

◆ getNumNodes()

size_t agxModel::Deformable1DInitializationReport::getNumNodes ( ) const
Returns
The number of nodes in the initialized route. This is equal to the number of segments.

◆ getResolution()

agx::Real agxModel::Deformable1DInitializationReport::getResolution ( ) const
Returns
The resolution of the routed path.

◆ getTargetError()

agx::Real agxModel::Deformable1DInitializationReport::getTargetError ( ) const
Returns
the target error

◆ restore()

void agxModel::Deformable1DInitializationReport::restore ( agxStream::InputArchive &  in)

Restore from input archive.

◆ store()

void agxModel::Deformable1DInitializationReport::store ( agxStream::OutputArchive &  out) const

Store to output archive.

◆ successful()

agx::Bool agxModel::Deformable1DInitializationReport::successful ( ) const
Returns
true if maximum error is less than or equal to the target error

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