gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
9 #include "GmshConfig.h"
18 #include <BRep_Tool.hxx>
19 #include <Geom2d_Curve.hxx>
20 #include <GeomAPI_ProjectPointOnCurve.hxx>
21 #include <Geom_Curve.hxx>
22 #include <TopoDS_Edge.hxx>
24 class OCCEdge :
public GEdge {
30 Handle(Geom_Curve) _curve;
31 mutable Handle(Geom2d_Curve) _curve2d;
32 mutable GFace *_trimmed;
33 mutable GeomAPI_ProjectPointOnCurve _projector;
34 bool _project(
const double p[3],
double &u,
double xyz[3])
const;
44 virtual bool degenerate(
int)
const {
return BRep_Tool::Degenerated(_c); }
47 virtual double curvature(
double par)
const;
53 virtual void *
getNativePtr()
const {
return (
void *)&_c; }
56 virtual bool is3D()
const {
return !_curve.IsNull(); }
57 void setTrimmed(OCCFace *);
virtual SPoint2 reparamOnFace(const GFace *face, double epar, int dir) const
virtual bool degenerate(int dim) const
virtual int minimumDrawSegments() const
static double c(int i, int j, fullMatrix< double > &CA, const std::vector< SPoint3 > &P, const std::vector< SPoint3 > &Q)
void f(int n, double u, double *val)
virtual void writeGEO(FILE *fp)
virtual ModelType getNativeType() const
virtual void * getNativePtr() const
virtual void delFace(GFace *f)
virtual SVector3 firstDer(double par) const =0
virtual GeomType geomType() const
virtual bool is3D() const
virtual bool isSeam(const GFace *face) const
virtual Range< double > parBoundsOnFace(GFace *face=nullptr) const
virtual double curvature(double par) const
virtual bool containsPoint(const SPoint3 &pt) const
virtual SBoundingBox3d bounds(bool fast=false)
virtual GPoint closestPoint(const SPoint3 &queryPoint, double ¶m) const
virtual Range< double > parBounds(int i) const =0
virtual GPoint point(double p) const =0
virtual double parFromPoint(const SPoint3 &P) const