AGX Dynamics  2.35.0.1
TriangleEntity.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or
9 having been advised so by Algoryx Simulation AB for a time limited evaluation,
10 or having purchased a valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
18 // AUTOMATICALLY GENERATED ENTITY, DO NOT EDIT! //
20 
21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_TRIANGLE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_TRIANGLE_H_PLUGIN
23 
24 #define AGX_ENTITY_WRAPPER 1
25 
26 
27 #ifdef _MSC_VER
28 # pragma warning(push)
29 // warning C4505: 'agxData::VectorAttributeT<T>::print' : unreferenced local function has been removed
30 # pragma warning( disable : 4505 )
31 // warning C4251: 'X' : class 'Y' needs to have dll-interface to be used by clients of class 'Z'
32 # pragma warning( disable : 4251 )
33 // warning C4355: 'this' : used in base member initializer list
34 # pragma warning( disable : 4355 )
35 // marked as __forceinline not inlined
36 # pragma warning( disable: 4714 )
37 #endif
38 
39 #include <agxData/EntityModel.h>
40 #include <agxData/EntityStorage.h>
41 #include <agxData/EntityRef.h>
42 #include <agxData/EntityPtr.h>
43 #include <agxData/EntityInstance.h>
44 #include <agx/Integer.h>
45 #include <agx/Real.h>
46 #include <agx/macros.h>
47 #include <agx/Vec3.h>
48 #include <agx/Vec4.h>
49 #include <agx/Integer.h>
50 #include <agx/Real.h>
51 
52 
53 namespace agx
54 {
55  namespace Physics
56  {
57  namespace Geometry
58  {
59 
60  class TriangleModel;
61  class TriangleData;
62  class TrianglePtr;
63  class TriangleInstance;
64  class TriangleSemantics;
65 
66 
68 
73  {
74  public:
75  typedef TrianglePtr PtrT;
76 
77  TriangleModel(const agx::String& name = "Triangle");
78 
81 
84 
87 
89  virtual void shutdownCleanup() override;
90 
91 
92 
93  /* Attributes */
95  static const size_t verticesArraySize = 3;
97  static const size_t normalsArraySize = 3;
99  static const size_t colorsArraySize = 3;
101  static const size_t indicesArraySize = 3;
103 
104  protected:
105  virtual ~TriangleModel();
106  virtual agxData::EntityData* createData(agxData::EntityStorage* storage) override;
107  virtual void configure(agx::TiXmlElement* eEntity) override;
108  virtual void initAttributeAccessors() override;
109  virtual void construct(agxData::EntityPtr instance) override;
111  };
112 
113 
115  #ifndef AGX_PHYSICS_GEOMETRY_TRIANGLE_DATA_SET_OVERRIDE
116  #define AGX_PHYSICS_GEOMETRY_TRIANGLE_DATA_SET
117  class AGXPHYSICS_EXPORT TriangleData : public agxData::EntityData
118  {
119  public:
120  TriangleInstance operator[] (size_t index);
121 
122  public:
125  static const size_t verticesArraySize = 3;
127  static const size_t normalsArraySize = 3;
129  static const size_t colorsArraySize = 3;
131  static const size_t indicesArraySize = 3;
132  agxData::Array< agx::Real > cameraDistance;
133 
134  public:
135  typedef agx::Vec3f verticesType;
136  typedef agx::Vec3f normalsType;
137  typedef agx::Vec4f colorsType;
138  typedef agx::UInt32 indicesType;
139  typedef agx::Real cameraDistanceType;
140 
141  public:
142  TriangleData(agxData::EntityStorage* storage);
143  TriangleData();
144 
145  protected:
146  virtual ~TriangleData() {}
147  virtual void setNumElements(agx::Index numElements) override;
148 
149  private:
150  TriangleData& operator= (const TriangleData&) { return *this; }
151 
152  };
153  #endif
155 
156 
158  class AGXPHYSICS_EXPORT TriangleSemantics : protected agxData::EntityPtr
159  {
160  public:
161 
162  // Automatic getters
163  agx::Real const& getCameraDistance() const;
164 
165  // Semantics defined by explicit kernels
166 
167  // Automatic setters
168  void setCameraDistance(agx::Real const& value);
169 
170 
171  protected:
172  friend class TrianglePtr;
173  friend class TriangleInstance;
174  TriangleSemantics();
175  };
177 
178 
179 
182  class CALLABLE TrianglePtr : public agxData::EntityPtr
183  {
184  public:
186  typedef TriangleData DataType;
187  typedef TriangleInstance InstanceType;
188 
189  public:
196  AGXPHYSICS_EXPORT TriangleInstance instance();
197  AGXPHYSICS_EXPORT const TriangleInstance instance() const;
198 
199  AGXPHYSICS_EXPORT TriangleSemantics* operator->();
200  AGXPHYSICS_EXPORT const TriangleSemantics* operator->() const;
201 
202  TriangleData* getData();
203  const TriangleData* getData() const;
204 
205 
209  AGXPHYSICS_EXPORT agx::Vec3f const& vertices(size_t index) const;
210 
214  AGXPHYSICS_EXPORT agx::Vec3f const& normals(size_t index) const;
215 
219  AGXPHYSICS_EXPORT agx::Vec4f const& colors(size_t index) const;
220 
224  AGXPHYSICS_EXPORT agx::UInt32 const& indices(size_t index) const;
225 
230 
232  // Only used by tolua!
233  #ifdef AGX_GENERATED_TOLUA_WRAPPER
234  inline agx::Real const& getCameraDistance() const { return (*this)->getCameraDistance(); }
235 
236 
237  inline void setCameraDistance(agx::Real const& value) { (*this)->setCameraDistance(value); }
238  #endif
240 
241  };
242 
243 
245  class AGXPHYSICS_EXPORT TriangleInstance : public agxData::EntityInstance
246  {
247  public:
248  TriangleInstance();
249  TriangleInstance(TriangleData* data, agx::Index index);
250  TriangleInstance(agxData::EntityStorage *storage, agx::Index index);
251  TriangleInstance(const agxData::EntityInstance& other);
252  TriangleInstance(const agxData::EntityPtr& ptr);
253 
254  TriangleData* getData();
255  const TriangleData* getData() const;
256 
257  public:
258  agxData::Array< agx::Vec3f > vertices();
259  agxData::Array< agx::Vec3f > const vertices() const;
260  agx::Vec3f& vertices(size_t index);
261  agx::Vec3f const& vertices(size_t index) const;
262 
264  agxData::Array< agx::Vec3f > const normals() const;
265  agx::Vec3f& normals(size_t index);
266  agx::Vec3f const& normals(size_t index) const;
267 
269  agxData::Array< agx::Vec4f > const colors() const;
270  agx::Vec4f& colors(size_t index);
271  agx::Vec4f const& colors(size_t index) const;
272 
274  agxData::Array< agx::UInt32 > const indices() const;
275  agx::UInt32& indices(size_t index);
276  agx::UInt32 const& indices(size_t index) const;
277 
279  agx::Real& cameraDistance();
281  agx::Real const& cameraDistance() const;
282 
283  };
285 
286 
287 
290 
291 
292 
294  /* Implementation */
295  //-----------------------------------------------------------------------------------------------------
296  //-----------------------------------------------------------------------------------------------------
297  inline TriangleInstance agx::Physics::Geometry::TriangleData::operator[] (size_t index) { return TriangleInstance(this, (agx::Index)index); }
298  //-----------------------------------------------------------------------------------------------------
300  AGX_FORCE_INLINE TrianglePtr::TrianglePtr(agxData::EntityStorage* storage, agx::Index id) : agxData::EntityPtr(storage, id) {}
301  AGX_FORCE_INLINE TrianglePtr::TrianglePtr(const agxData::EntityPtr& ptr) : agxData::EntityPtr(ptr)
302  {
304  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
305  EntityPtr::getModel()->fullPath().c_str(), TriangleModel::instance()->fullPath().c_str());
306  }
307 
308  AGX_FORCE_INLINE TrianglePtr::TrianglePtr(const agxData::EntityInstance& instance) : agxData::EntityPtr(instance)
309  {
310  agxAssertN(!instance || instance.isInstanceOf(TriangleModel::instance()),
311  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
312  EntityPtr::getModel()->fullPath().c_str(), TriangleModel::instance()->fullPath().c_str());
313  }
314 
315  AGX_FORCE_INLINE TrianglePtr& TrianglePtr::operator= (const agxData::EntityPtr& ptr)
316  {
318  agxAssertN(!ptr || ptr.isInstanceOf(TriangleModel::instance()),
319  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320  EntityPtr::getModel()->fullPath().c_str(), TriangleModel::instance()->fullPath().c_str());
321  return *this;
322  }
323 
324  AGX_FORCE_INLINE TrianglePtr& TrianglePtr::operator= (const agxData::EntityInstance& instance)
325  {
327  agxAssertN(!instance || instance.isInstanceOf(TriangleModel::instance()),
328  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
329  EntityPtr::getModel()->fullPath().c_str(), TriangleModel::instance()->fullPath().c_str());
330  return *this;
331  }
332 
333  inline TriangleInstance TrianglePtr::instance() { return agxData::EntityPtr::instance(); }
334  inline const TriangleInstance TrianglePtr::instance() const { return agxData::EntityPtr::instance(); }
335  AGX_FORCE_INLINE TriangleSemantics* TrianglePtr::operator->() { return (TriangleSemantics* )this; }
336  AGX_FORCE_INLINE const TriangleSemantics* TrianglePtr::operator->() const { return (const TriangleSemantics* )this; }
337  AGX_FORCE_INLINE TriangleData* TrianglePtr::getData() { return static_cast<TriangleData* >(agxData::EntityPtr::getData()); }
338  AGX_FORCE_INLINE const TriangleData* TrianglePtr::getData() const { return static_cast<const TriangleData* >(agxData::EntityPtr::getData()); }
339 
340  AGX_FORCE_INLINE agxData::Array< agx::Vec3f > TrianglePtr::vertices() { verifyIndex(); return getData()->vertices.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::verticesArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::verticesArraySize)); }
341  AGX_FORCE_INLINE const agxData::Array< agx::Vec3f > TrianglePtr::vertices() const { verifyIndex(); return getData()->vertices.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::verticesArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::verticesArraySize)); }
342  AGX_FORCE_INLINE agx::Vec3f& TrianglePtr::vertices(size_t index) { return this->vertices()[index]; }
343  AGX_FORCE_INLINE agx::Vec3f const& TrianglePtr::vertices(size_t index) const { return this->vertices()[index]; }
344 
345  AGX_FORCE_INLINE agxData::Array< agx::Vec3f > TrianglePtr::normals() { verifyIndex(); return getData()->normals.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::normalsArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::normalsArraySize)); }
346  AGX_FORCE_INLINE const agxData::Array< agx::Vec3f > TrianglePtr::normals() const { verifyIndex(); return getData()->normals.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::normalsArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::normalsArraySize)); }
347  AGX_FORCE_INLINE agx::Vec3f& TrianglePtr::normals(size_t index) { return this->normals()[index]; }
348  AGX_FORCE_INLINE agx::Vec3f const& TrianglePtr::normals(size_t index) const { return this->normals()[index]; }
349 
350  AGX_FORCE_INLINE agxData::Array< agx::Vec4f > TrianglePtr::colors() { verifyIndex(); return getData()->colors.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::colorsArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::colorsArraySize)); }
351  AGX_FORCE_INLINE const agxData::Array< agx::Vec4f > TrianglePtr::colors() const { verifyIndex(); return getData()->colors.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::colorsArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::colorsArraySize)); }
352  AGX_FORCE_INLINE agx::Vec4f& TrianglePtr::colors(size_t index) { return this->colors()[index]; }
353  AGX_FORCE_INLINE agx::Vec4f const& TrianglePtr::colors(size_t index) const { return this->colors()[index]; }
354 
355  AGX_FORCE_INLINE agxData::Array< agx::UInt32 > TrianglePtr::indices() { verifyIndex(); return getData()->indices.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::indicesArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::indicesArraySize)); }
356  AGX_FORCE_INLINE const agxData::Array< agx::UInt32 > TrianglePtr::indices() const { verifyIndex(); return getData()->indices.slice(agx::IndexRange32(calculateIndex() * (agx::Index)TriangleData::indicesArraySize, (calculateIndex()+1) * (agx::Index)TriangleData::indicesArraySize)); }
357  AGX_FORCE_INLINE agx::UInt32& TrianglePtr::indices(size_t index) { return this->indices()[index]; }
358  AGX_FORCE_INLINE agx::UInt32 const& TrianglePtr::indices(size_t index) const { return this->indices()[index]; }
359 
360  AGX_FORCE_INLINE agx::Real& TrianglePtr::cameraDistance() { verifyIndex(); return getData()->cameraDistance[calculateIndex()]; }
361  AGX_FORCE_INLINE agx::Real const& TrianglePtr::cameraDistance() const { verifyIndex(); return getData()->cameraDistance[calculateIndex()]; }
362 
363  //-----------------------------------------------------------------------------------------------------
364  AGX_FORCE_INLINE TriangleInstance::TriangleInstance() {}
365  AGX_FORCE_INLINE TriangleInstance::TriangleInstance(TriangleData* data, agx::Index index) : agxData::EntityInstance(data, index) {}
366  AGX_FORCE_INLINE TriangleInstance::TriangleInstance(agxData::EntityStorage* storage, agx::Index index) : agxData::EntityInstance(storage, index) {}
367  AGX_FORCE_INLINE TriangleInstance::TriangleInstance(const agxData::EntityInstance& other) : agxData::EntityInstance(other)
368  {
370  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
372  }
373 
374  AGX_FORCE_INLINE TriangleInstance::TriangleInstance(const agxData::EntityPtr& ptr) : agxData::EntityInstance(ptr)
375  {
377  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
379  }
380 
381 
382  AGX_FORCE_INLINE TriangleData* TriangleInstance::getData() { return static_cast<TriangleData* >(agxData::EntityInstance::getData()); }
383  AGX_FORCE_INLINE const TriangleData* TriangleInstance::getData() const { return static_cast<const TriangleData* >(agxData::EntityInstance::getData()); }
384 
385  AGX_FORCE_INLINE agxData::Array< agx::Vec3f > TriangleInstance::vertices() { verifyIndex(); return getData()->vertices.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::verticesArraySize, (getIndex()+1) * (agx::Index)TriangleData::verticesArraySize)); }
386  AGX_FORCE_INLINE const agxData::Array< agx::Vec3f > TriangleInstance::vertices() const { verifyIndex(); return getData()->vertices.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::verticesArraySize, (getIndex()+1) * (agx::Index)TriangleData::verticesArraySize)); }
387  AGX_FORCE_INLINE agx::Vec3f& TriangleInstance::vertices(size_t index) { return this->vertices()[index]; }
388  AGX_FORCE_INLINE agx::Vec3f const& TriangleInstance::vertices(size_t index) const { return this->vertices()[index]; }
389 
390  AGX_FORCE_INLINE agxData::Array< agx::Vec3f > TriangleInstance::normals() { verifyIndex(); return getData()->normals.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::normalsArraySize, (getIndex()+1) * (agx::Index)TriangleData::normalsArraySize)); }
391  AGX_FORCE_INLINE const agxData::Array< agx::Vec3f > TriangleInstance::normals() const { verifyIndex(); return getData()->normals.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::normalsArraySize, (getIndex()+1) * (agx::Index)TriangleData::normalsArraySize)); }
392  AGX_FORCE_INLINE agx::Vec3f& TriangleInstance::normals(size_t index) { return this->normals()[index]; }
393  AGX_FORCE_INLINE agx::Vec3f const& TriangleInstance::normals(size_t index) const { return this->normals()[index]; }
394 
395  AGX_FORCE_INLINE agxData::Array< agx::Vec4f > TriangleInstance::colors() { verifyIndex(); return getData()->colors.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::colorsArraySize, (getIndex()+1) * (agx::Index)TriangleData::colorsArraySize)); }
396  AGX_FORCE_INLINE const agxData::Array< agx::Vec4f > TriangleInstance::colors() const { verifyIndex(); return getData()->colors.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::colorsArraySize, (getIndex()+1) * (agx::Index)TriangleData::colorsArraySize)); }
397  AGX_FORCE_INLINE agx::Vec4f& TriangleInstance::colors(size_t index) { return this->colors()[index]; }
398  AGX_FORCE_INLINE agx::Vec4f const& TriangleInstance::colors(size_t index) const { return this->colors()[index]; }
399 
400  AGX_FORCE_INLINE agxData::Array< agx::UInt32 > TriangleInstance::indices() { verifyIndex(); return getData()->indices.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::indicesArraySize, (getIndex()+1) * (agx::Index)TriangleData::indicesArraySize)); }
401  AGX_FORCE_INLINE const agxData::Array< agx::UInt32 > TriangleInstance::indices() const { verifyIndex(); return getData()->indices.slice(agx::IndexRange32(getIndex() * (agx::Index)TriangleData::indicesArraySize, (getIndex()+1) * (agx::Index)TriangleData::indicesArraySize)); }
402  AGX_FORCE_INLINE agx::UInt32& TriangleInstance::indices(size_t index) { return this->indices()[index]; }
403  AGX_FORCE_INLINE agx::UInt32 const& TriangleInstance::indices(size_t index) const { return this->indices()[index]; }
404 
405  AGX_FORCE_INLINE agx::Real& TriangleInstance::cameraDistance() { verifyIndex(); return getData()->cameraDistance[getIndex()]; }
406  AGX_FORCE_INLINE agx::Real const& TriangleInstance::cameraDistance() const { verifyIndex(); return getData()->cameraDistance[getIndex()]; }
407 
408  //-----------------------------------------------------------------------------------------------------
409  AGX_FORCE_INLINE TriangleSemantics::TriangleSemantics() {}
410  //-----------------------------------------------------------------------------------------------------
412  }
413  }
414 }
415 
416 AGX_TYPE_BINDING(agx::Physics::Geometry::TrianglePtr, "Physics.Geometry.TrianglePtr")
417 AGX_TYPE_BINDING(agx::Physics::Geometry::TriangleInstance, "Physics.Geometry.TriangleInstance")
418 
419 #ifdef _MSC_VER
420 # pragma warning(pop)
421 #endif
422 
423 #undef AGX_ENTITY_WRAPPER
424 #undef AGX_ENTITY_NAMESPACE
425 #endif
426 
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Definition: Array.h:107
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Definition: EntityModel.h:64
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Definition: EntityPtr.h:52
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
Definition: EntityPtr.h:269
EntityPtr & operator=(const EntityPtr &other)=default
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:73
A range of indices.
Definition: IndexRange.h:33
agx::String fullPath() const
Abstract description of the data attributes for the Physics.Geometry.Triangle entity.
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void construct(agxData::EntityPtr instance) override
static agxData::EntityStorage * defaultStorage()
virtual void configure(agx::TiXmlElement *eEntity) override
static agxData::ScalarAttributeT< agx::Vec3f > * normalsAttribute
static TrianglePtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Vec4f > * colorsAttribute
static agxData::ScalarAttributeT< agx::Real > * cameraDistanceAttribute
TriangleModel(const agx::String &name="Triangle")
void construct(agx::Physics::Geometry::TrianglePtr triangle)
static agxData::ScalarAttributeT< agx::Vec3f > * verticesAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::UInt32 > * indicesAttribute
virtual void initAttributeAccessors() override
static TriangleModel * instance()
Pointer to a entity instance of type Physics.Geometry.Triangle.
AGXPHYSICS_EXPORT TrianglePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Real & cameraDistance()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > indices()
AGXPHYSICS_EXPORT TriangleInstance instance()
AGXPHYSICS_EXPORT agx::Vec3f & vertices(size_t index)
AGXPHYSICS_EXPORT agxData::Array< agx::Vec3f > const normals() const
AGXPHYSICS_EXPORT agxData::Array< agx::Vec3f > normals()
AGXPHYSICS_EXPORT const TriangleInstance instance() const
AGXPHYSICS_EXPORT agx::Real const & cameraDistance() const
AGXPHYSICS_EXPORT agxData::Array< agx::Vec4f > colors()
AGXPHYSICS_EXPORT agx::Vec3f & normals(size_t index)
AGXPHYSICS_EXPORT TrianglePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT TrianglePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agxData::Array< agx::Vec3f > const vertices() const
AGXPHYSICS_EXPORT agxData::Array< agx::Vec3f > vertices()
AGXPHYSICS_EXPORT agx::Vec3f const & vertices(size_t index) const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const indices() const
AGXPHYSICS_EXPORT agx::Vec4f & colors(size_t index)
AGXPHYSICS_EXPORT agx::UInt32 & indices(size_t index)
AGXPHYSICS_EXPORT TriangleSemantics * operator->()
AGXPHYSICS_EXPORT agxData::Array< agx::Vec4f > const colors() const
const TriangleData * getData() const
AGXPHYSICS_EXPORT agx::Vec4f const & colors(size_t index) const
AGXPHYSICS_EXPORT agx::Vec3f const & normals(size_t index) const
AGXPHYSICS_EXPORT const TriangleSemantics * operator->() const
AGXPHYSICS_EXPORT agx::UInt32 const & indices(size_t index) const
A class holding 4 dimensional vectors and providing basic arithmetic.
Definition: Vec4Template.h:35
Vector containing 'raw' data.
Definition: agx/Vector.h:246
#define agxAssertN(expr, format,...)
Definition: debug.h:145
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define CALLABLE
Definition: macros.h:72
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
#define AGX_FORCE_INLINE
Definition: macros.h:58
Contains classes for low level data storage for AGX.
Definition: Container.h:23
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
uint32_t UInt32
Definition: Integer.h:40
double Real
Definition: Real.h:42
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Definition: Object.h:364
UInt32 Index
Definition: Integer.h:52