53 friend class PaperTexturePrimitive;
66 int nxCells,
int nyCells,
67 const geom::Vec *init,
bool initWithCorners,
72 virtual void updateSceneObject();
84 geom::Vec getNodePosition(
int x,
int y)
const;
86 return getNodePosition(p.x,p.y);
89 void setNodeMass(
const geom::Vec &v,
float mass);
90 void setTotalMass(
float mass);
106 virtual void adaptRowStiffness(
float val,
int row);
107 virtual void adaptColStiffness(
float val,
int col);
108 virtual void adaptGlobalStiffness(
float val);
114 virtual void memorizeDeformation();
115 virtual void resetDeformation();
124 geom::Vec getPosFromPhysics(
int x,
int y)
const;
127 geom::Vec getNormalFromPhysics(
int x,
int y);
131 void randomizeLinks();
Utility structure for calculation of view-ray / plane intersections.
Definition: PlaneEquation.h:41
bool hasBackfaceTexture
Definition: PhysicsPaper.h:57
undocument this line if you encounter any issues!
Definition: Any.h:37
std::vector< float > originalRestLengths
Definition: PhysicsPaper.h:61
A physical world that handles physical objects.
Definition: PhysicsWorld.h:56
SceneObject * so
Definition: PhysicsPaper.h:55
utils::Size cells
Definition: PhysicsPaper.h:56
const utils::Size & getDimensions() const
Definition: PhysicsPaper.h:83
Size class of the ICL.
Definition: Size.h:61
geom::Vec getNodePosition(const utils::Point &p) const
Definition: PhysicsPaper.h:85
This class represents cloth or paper like soft-body objects.
Definition: PhysicsPaper.h:51
#define ICLPhysics_API
Definition: CompatMacros.h:181
This is a view-ray's line equation in parameter form.
Definition: ViewRay.h:49
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
std::vector< BendingConstraint > constraints
Definition: PhysicsPaper.h:60