|
mmg3d
|
Functions for Bezier surface computation. More...
#include "mmg3d.h"
Functions | |
| int | MMG5_BezierTgt (double c1[3], double c2[3], double n1[3], double n2[3], double t1[3], double t2[3]) |
| double | MMG5_BezierGeod (double c1[3], double c2[3], double t1[3], double t2[3]) |
| int | MMG5_BezierEdge (MMG5_pMesh mesh, int ip0, int ip1, double b0[3], double b1[3], int8_t ised, double v[3]) |
| int | MMG5_mmg3dBezierCP (MMG5_pMesh mesh, MMG5_Tria *pt, MMG5_pBezier pb, int8_t ori) |
| int | MMG3D_bezierInt (MMG5_pBezier pb, double uv[2], double o[3], double no[3], double to[3]) |
Variables | |
| int8_t | ddb |
Functions for Bezier surface computation.
| int MMG3D_bezierInt | ( | MMG5_pBezier | pb, |
| double | uv[2], | ||
| double | o[3], | ||
| double | no[3], | ||
| double | to[3] | ||
| ) |
| pb | pointer toward the Bezier structure. |
| uv | coordinates of the point in the parametric space. |
| o | computed coordinates of the point in the real space. |
| no | computed normal. |
| to | computed tangent. |
Compute o, no and to at
in Bezier patch.

|
inline |
| mesh | pointer toward the mesh structure. |
| ip0 | index of the first point of the curve. |
| ip1 | index of the second point of the curve. |
| b0 | the first computed extrapolated control point. |
| b1 | the second computed extrapolated control point. |
| ised | flag for special edge. |
| v | direction for normal vectors. |
Compute control points associated to the underlying curve to
. ised = 1 if
must be considered as a special edge. Provide a direction v which will be considered as reference when dealing with choice of normal vectors.


|
inline |
| c1 | coordinates of the first point of the curve. |
| c2 | coordinates of the second point of the curve. |
| t1 | normal at the first point of the curve. |
| t2 | normal at the second point of the curve. |
Compute value of the parameter that makes the underlying Bezier curve with 'constant speed'

|
inline |
| c1 | coordinates of the first point of the curve. |
| c2 | coordinates of the second point of the curve. |
| n1 | normal at the first point of the curve. |
| n2 | normal at the second point of the curve. |
| t1 | computed normal at the first point of the curve. |
| t2 | computed normal at the second point of the curve. |
Compute tangent to geometric support curve passing through c1,c2, with normals n1,n2

| int MMG5_mmg3dBezierCP | ( | MMG5_pMesh | mesh, |
| MMG5_Tria * | pt, | ||
| MMG5_pBezier | pb, | ||
| int8_t | ori | ||
| ) |
| mesh | pointer toward the mesh structure. |
| pt | pointer toward the triangle structure. |
| pb | pointer toward the computed Bezier structure. |
| ori | triangle orientation. |
Compute Bezier control points on triangle pt (cf. Vlachos)
Orientation of the normals at non-manifold points


| int8_t ddb |