1 // File generated by CPPExt (Transient)
3 // Copyright (C) 1991,1995 by
5 // MATRA DATAVISION, FRANCE
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
16 #ifndef _SMDS_MeshTriangle_HeaderFile
17 #define _SMDS_MeshTriangle_HeaderFile
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
22 #ifndef _Handle_SMDS_MeshTriangle_HeaderFile
23 #include "Handle_SMDS_MeshTriangle.hxx"
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
29 #ifndef _SMDS_MeshFace_HeaderFile
30 #include "SMDS_MeshFace.hxx"
32 #ifndef _Standard_Address_HeaderFile
33 #include <Standard_Address.hxx>
37 class SMDS_MeshTriangle : public SMDS_MeshFace {
41 inline void* operator new(size_t,void* anAddress)
45 inline void* operator new(size_t size)
47 return Standard::Allocate(size);
49 inline void operator delete(void *anAddress)
51 if (anAddress) Standard::Free((Standard_Address&)anAddress);
53 // inline void operator delete(void *anAddress, size_t size)
55 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
59 Standard_EXPORT SMDS_MeshTriangle(const Standard_Integer ID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3);
60 Standard_EXPORT inline void ComputeKey() ;
61 Standard_EXPORT inline void GetEdgeDefinedByNodes(const Standard_Integer rank,Standard_Integer& idnode1,Standard_Integer& idnode2) const;
62 Standard_EXPORT inline Standard_Address GetConnections() const;
63 Standard_EXPORT inline Standard_Integer GetConnection(const Standard_Integer rank) const;
64 Standard_EXPORT ~SMDS_MeshTriangle();
71 Standard_EXPORT friend Handle_Standard_Type& SMDS_MeshTriangle_Type_();
72 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
73 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
89 Standard_EXPORT void SetConnections(const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3) ;
94 Standard_Integer myNodes[3];
100 #include "SMDS_MeshTriangle.lxx"
104 // other inline functions and methods (like "C++: function call" methods)