gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
gmshEdgeDiscretize.cpp File Reference
#include <cstdio>
#include <cmath>
#include <vector>
#include "SPoint3.h"
#include "SVector3.h"
#include "GEdge.h"
#include "gmshEdge.h"
#include "Geo.h"
Include dependency graph for gmshEdgeDiscretize.cpp:

Go to the source code of this file.

Classes

class  discreteList
 

Functions

static void decasteljau (double tol, discreteList &discrete, int pos, const SPoint3 &p0, const SPoint3 &p1, const SPoint3 &p2, const SPoint3 &p3, double t0, double t3)
 
static int discretizeBezier (double tol, discreteList &discrete, int pos, const SPoint3 pt[4], double t0, double t3, bool insertFirstPoint)
 
static int discretizeBSpline (double tol, discreteList &discrete, int pos, const SPoint3 pt[4], double t0, double t3, bool insertFirstPoint)
 
static int discretizeCatmullRom (double tol, discreteList &discrete, int pos, const SPoint3 pt[4], double t0, double t3, bool insertFirstPoint)
 
static SPoint3 curveGetPoint (Curve *c, int i)
 
static void discretizeCurve (Curve *c, double tol, std::vector< SPoint3 > &pts, std::vector< double > &ts)
 

Function Documentation

◆ curveGetPoint()

static SPoint3 curveGetPoint ( Curve c,
int  i 
)
inlinestatic

Definition at line 98 of file gmshEdgeDiscretize.cpp.

Referenced by discretizeCurve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decasteljau()

static void decasteljau ( double  tol,
discreteList discrete,
int  pos,
const SPoint3 p0,
const SPoint3 p1,
const SPoint3 p2,
const SPoint3 p3,
double  t0,
double  t3 
)
static

Definition at line 41 of file gmshEdgeDiscretize.cpp.

Referenced by gmshEdge::discretize(), MLine3::discretize(), MLineN::discretize(), and discretizeBezier().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ discretizeBezier()

static int discretizeBezier ( double  tol,
discreteList discrete,
int  pos,
const SPoint3  pt[4],
double  t0,
double  t3,
bool  insertFirstPoint 
)
static

Definition at line 68 of file gmshEdgeDiscretize.cpp.

Referenced by discretizeBSpline(), discretizeCatmullRom(), and discretizeCurve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ discretizeBSpline()

static int discretizeBSpline ( double  tol,
discreteList discrete,
int  pos,
const SPoint3  pt[4],
double  t0,
double  t3,
bool  insertFirstPoint 
)
static

Definition at line 78 of file gmshEdgeDiscretize.cpp.

Referenced by discretizeCurve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ discretizeCatmullRom()

static int discretizeCatmullRom ( double  tol,
discreteList discrete,
int  pos,
const SPoint3  pt[4],
double  t0,
double  t3,
bool  insertFirstPoint 
)
static

Definition at line 89 of file gmshEdgeDiscretize.cpp.

Referenced by discretizeCurve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ discretizeCurve()

static void discretizeCurve ( Curve c,
double  tol,
std::vector< SPoint3 > &  pts,
std::vector< double > &  ts 
)
static

Definition at line 105 of file gmshEdgeDiscretize.cpp.

Here is the call graph for this function: