File indexing completed on 2026-09-26 09:05:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef VrmlData_Faceted_HeaderFile
0017 #define VrmlData_Faceted_HeaderFile
0018
0019 #include <VrmlData_Geometry.hxx>
0020
0021
0022
0023
0024
0025 class VrmlData_Faceted : public VrmlData_Geometry
0026 {
0027 public:
0028
0029
0030
0031
0032
0033 inline VrmlData_Faceted()
0034 : myCreaseAngle(0.),
0035 myIsCCW(true),
0036 myIsSolid(true),
0037 myIsConvex(true)
0038 {
0039 }
0040
0041
0042
0043
0044 inline VrmlData_Faceted(const VrmlData_Scene& theScene,
0045 const char* theName,
0046 const bool isCCW,
0047 const bool isSolid,
0048 const bool isConvex,
0049 const double theCreaseAngle)
0050 : VrmlData_Geometry(theScene, theName),
0051 myCreaseAngle(theCreaseAngle),
0052 myIsCCW(isCCW),
0053 myIsSolid(isSolid),
0054 myIsConvex(isConvex)
0055 {
0056 }
0057
0058
0059
0060
0061 inline bool IsCCW() const { return myIsCCW; }
0062
0063
0064
0065
0066 inline bool IsSolid() const { return myIsSolid; }
0067
0068
0069
0070
0071 inline bool IsConvex() const { return myIsConvex; }
0072
0073
0074
0075
0076 inline double CreaseAngle() const { return myCreaseAngle; }
0077
0078
0079
0080
0081 inline void SetCCW(const bool theValue) { myIsCCW = theValue; }
0082
0083
0084
0085
0086 inline void SetSolid(const bool theValue) { myIsSolid = theValue; }
0087
0088
0089
0090
0091 inline void SetConvex(const bool theValue) { myIsConvex = theValue; }
0092
0093
0094
0095
0096 inline void SetCreaseAngle(const double theValue) { myCreaseAngle = theValue; }
0097
0098
0099 protected:
0100 Standard_EXPORT VrmlData_ErrorStatus readData(VrmlData_InBuffer& theBuffer);
0101
0102 private:
0103
0104
0105 double myCreaseAngle;
0106 bool myIsCCW : 1;
0107 bool myIsSolid : 1;
0108 bool myIsConvex : 1;
0109
0110 public:
0111
0112 DEFINE_STANDARD_RTTI_INLINE(VrmlData_Faceted, VrmlData_Geometry)
0113 };
0114
0115
0116 #endif