21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_TRIMESH_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_TRIMESH_H_PLUGIN
24 #define AGX_ENTITY_WRAPPER 1
28 # pragma warning(push)
30 # pragma warning( disable : 4505 )
32 # pragma warning( disable : 4251 )
34 # pragma warning( disable : 4355 )
36 # pragma warning( disable: 4714 )
60 class TrimeshInstance;
61 class TrimeshSemantics;
86 virtual void shutdownCleanup()
override;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
96 virtual void initAttributeAccessors()
override;
103 #ifndef AGX_PHYSICS_GEOMETRY_TRIMESH_DATA_SET_OVERRIDE
104 #define AGX_PHYSICS_GEOMETRY_TRIMESH_DATA_SET
108 TrimeshInstance operator[] (
size_t index);
120 virtual ~TrimeshData() {}
121 virtual void setNumElements(
agx::Index numElements)
override;
124 TrimeshData& operator= (
const TrimeshData&) {
return *
this; }
144 friend class TrimeshPtr;
145 friend class TrimeshInstance;
174 TrimeshData* getData();
175 const TrimeshData* getData()
const;
180 #ifdef AGX_GENERATED_TOLUA_WRAPPER
197 TrimeshInstance(TrimeshData* data,
agx::Index index);
202 TrimeshData* getData();
203 const TrimeshData* getData()
const;
220 inline TrimeshInstance
agx::Physics::Geometry::TrimeshData::operator[] (
size_t index) {
return TrimeshInstance(
this, (
agx::Index)index); }
227 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
234 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
242 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
251 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
258 AGX_FORCE_INLINE TrimeshSemantics* TrimeshPtr::operator->() {
return (TrimeshSemantics* )
this; }
259 AGX_FORCE_INLINE const TrimeshSemantics* TrimeshPtr::operator->()
const {
return (
const TrimeshSemantics* )
this; }
265 AGX_FORCE_INLINE TrimeshInstance::TrimeshInstance(TrimeshData* data,
agx::Index index) :
agx::Physics::Geometry::MeshInstance(data, index) {}
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
277 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 AGX_TYPE_BINDING(
agx::Physics::Geometry::TrimeshInstance, "Physics.Geometry.TrimeshInstance")
297 # pragma warning(pop)
300 #undef AGX_ENTITY_WRAPPER
301 #undef AGX_ENTITY_NAMESPACE