# header files
SET(HEXABLOCKEngine_HEADERS
HexGroup.hxx
- HexCylinder.hxx
HexEdge.hxx
HexGlobale.hxx
HexPropagation.hxx
HexDocument.hxx
HexEltBase.hxx
Hex.hxx
- HexPipe.hxx
HexShape.hxx
HexOldShape.hxx
HexNewShape.hxx
HexBiCylinderShape.hxx
HexAssoEdge.hxx
HexXmlTree.hxx
- HexCrossElements.hxx
HexBiCylinder.hxx
HexDumpStudy.hxx
HexAnaQuads.hxx
HexElements_piq.cxx
HexElements_asso.cxx
HexElements_grid.cxx
- HexCylinder.cxx
HexGroup.cxx
- HexPipe.cxx
HexLaw.cxx
HexShape.cxx
HexNewShape.cxx
HexXmlTree.cxx
HexXmlWriter.cxx
HexDumpStudy.cxx
- HexCrossElements.cxx
- HexCrossElements_build.cxx
HexBiCylinder.cxx
Hex.cxx
HexDocument_asso.cxx
HexDocument_quads.cxx
- HexDocument_del.cxx
HexDocument_skin.cxx
HexDocument_v6.cxx
HexElements_v6.cxx
HexElements_check.cxx
- HexElements_del.cxx
HexWitness.cxx
Hex_salome.cxx
test_unit.hxx
// -----------------------------------------------------------\r
#define Standard_True true\r
#define Handle(x) int\r
-enum {TopAbs_VERTEX, TopAbs_EDGE, TopAbs_FACE };\r
+ // Extrait de TopAbs_ShapeEnum.hxx \r
+enum TopAbs_ShapeEnum {\r
+ TopAbs_COMPOUND, TopAbs_COMPSOLID, TopAbs_SOLID, TopAbs_SHELL,\r
+ TopAbs_FACE, TopAbs_WIRE, TopAbs_EDGE, TopAbs_VERTEX,\r
+ TopAbs_SHAPE\r
+};\r
+\r
// -----------------------------------------------------------\r
class gp_Pnt\r
{\r
return -1.0;
GeomAdaptor_Curve adapt_curve (handle);
+ kind_of = (EnumKindOfShape) (adapt_curve.GetType() + 1);
+
+/******************
+ enum GeomAbs_CurveType { GeomAbs_Line, GeomAbs_Circle, GeomAbs_Ellipse,
+ GeomAbs_Hyperbola, GeomAbs_Parabola, GeomAbs_BezierCurve,
+ GeomAbs_BSplineCurve, GeomAbs_OtherCurve };
+ **********************/
+
double abscis = GCPnts_AbscissaPoint::Length (adapt_curve, umin, gparam);
double hparam = abscis/lin_length;
double getParam (double point[]);
double getLength ();
int onExtremity (double point[]);
+ bool isLinear () { return kind_of == KS_Line ; }
static bool samePoints (double point1[], double point2[]);
sub_ident = id;
sub_dim = dim;
maj_brep = maj_shape = true;
+ kind_of = KS_None;
}
// ====================================================== getShape
const TopoDS_Shape& SubShape::getShape ()
{
public :
SubShape (NewShape* dad, int id, int dim);
- NewShape* getParentShape() const { return ss_parent; }
- cpchar getParentName () const;
- int getIdent () { return sub_ident ; }
- int getDim () { return sub_dim ; }
+ NewShape* getParentShape() const { return ss_parent; }
+ cpchar getParentName () const;
+ int getIdent () { return sub_ident ; }
+ int getDim () { return sub_dim ; }
+ EnumKindOfShape kindOf () { return kind_of ; }
const string& getBrep ();
virtual const TopoDS_Shape& getShape ();
int sub_ident;
int sub_dim; // 0 = point, 1 = arete, 2 = face;
- TopoDS_Shape geo_shape;
- string geo_brep;
- bool maj_brep, maj_shape;
+ TopoDS_Shape geo_shape;
+ string geo_brep;
+ bool maj_brep, maj_shape;
+ EnumKindOfShape kind_of;
};
END_NAMESPACE_HEXA
#endif
enum EnumQDirection {Q_INSIDE, Q_DIRECT, Q_INVERSE, Q_UNDEFINED, Q_WAITING };
+enum EnumKindOfShape {KS_None, KS_Line, KS_Circle, KS_Ellipse, KS_Hyperbola,
+ KS_Parabola, KS_BezierCurve, KS_BSplineCurve,
+ KS_OtherCurve };
+
enum { CylSmall=0, CylBig=1, NxInt=1, NxExt=2 };
class Hex;