PeriDyno 1.0.0
Loading...
Searching...
No Matches
AnchorPointToPointSet.h
Go to the documentation of this file.
1#pragma once
3
5#include "Topology/PointSet.h"
6#include "Topology/DiscreteElements.h"
7
8
9namespace dyno
10{
11 template<typename TDataType>
13 {
14 public:
15 typedef typename TDataType::Real Real;
16 typedef typename TDataType::Coord Coord;
17 typedef typename TDataType::Matrix Matrix;
18
19 typedef typename ::dyno::BallAndSocketJoint<Real> BallAndSocketJoint;
20 typedef typename ::dyno::SliderJoint<Real> SliderJoint;
21 typedef typename ::dyno::HingeJoint<Real> HingeJoint;
22 typedef typename ::dyno::FixedJoint<Real> FixedJoint;
23
25
26 public:
28 DEF_ARRAY_IN(Coord, Center, DeviceType::GPU, "Center of rigid bodies");
29 DEF_ARRAY_IN(Matrix, RotationMatrix, DeviceType::GPU, "Rotation matrix of rigid bodies");
30
32
33 protected:
34 bool apply() override;
35 };
36}
::dyno::FixedJoint< Real > FixedJoint
::dyno::BallAndSocketJoint< Real > BallAndSocketJoint
DEF_ARRAY_IN(Coord, Center, DeviceType::GPU, "Center of rigid bodies")
DEF_ARRAY_IN(Matrix, RotationMatrix, DeviceType::GPU, "Rotation matrix of rigid bodies")
::dyno::SliderJoint< Real > SliderJoint
DEF_INSTANCE_IN(DiscreteElements< TDataType >, DiscreteElements, "")
DEF_INSTANCE_OUT(PointSet< TDataType >, PointSet, "")
::dyno::HingeJoint< Real > HingeJoint
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25