PeriDyno 1.0.0
Loading...
Searching...
No Matches
ParticleWriter.h
Go to the documentation of this file.
1#pragma once
4#include "Topology/PointSet.h"
5#include <string>
6
7namespace dyno
8{
9 template <typename TDataType> class TriangleSet;
10 template<typename TDataType>
12 {
14 public:
15 typedef typename TDataType::Real Real;
16 typedef typename TDataType::Coord Coord;
18
19 DECLARE_ENUM(OpenType,
20 ASCII = 0,
21 binary = 1);
22
24 virtual ~ParticleWriter();
25
26 void OutputASCII(std::string filename);
27 void OutputBinary(std::string filename);
28
29 void output()override;
30 protected:
31
32 public:
33
35 DEF_ENUM(OpenType, FileType, ASCII, "FileType");
36
37 private:
38 };
39}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
void OutputASCII(std::string filename)
TopologyModule::Triangle Triangle
DEF_INSTANCE_IN(PointSet< TDataType >, PointSet, "Input PointSet")
DECLARE_ENUM(OpenType, ASCII=0, binary=1)
TDataType::Real Real
void output() override
DEF_ENUM(OpenType, FileType, ASCII, "FileType")
TDataType::Coord Coord
void OutputBinary(std::string filename)
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25