SplineSeg3 ctor with custom weight

This commit is contained in:
Matthias Hochsteger 2020-08-13 19:52:55 +02:00
parent 0fefe5d32c
commit a0f70b4d73
2 changed files with 14 additions and 0 deletions

View File

@ -98,6 +98,16 @@ namespace netgen
proj_latest_t = 0.5;
}
template<int D>
SplineSeg3<D> :: SplineSeg3 (const GeomPoint<D> & ap1,
const GeomPoint<D> & ap2,
const GeomPoint<D> & ap3,
double aweight)
: p1(ap1), p2(ap2), p3(ap3), weight(aweight)
{
proj_latest_t = 0.5;
}
template<int D>
Point<D> SplineSeg3<D> :: GetPoint (double t) const
{

View File

@ -185,6 +185,10 @@ namespace netgen
SplineSeg3 (const GeomPoint<D> & ap1,
const GeomPoint<D> & ap2,
const GeomPoint<D> & ap3);
SplineSeg3 (const GeomPoint<D> & ap1,
const GeomPoint<D> & ap2,
const GeomPoint<D> & ap3,
double aweight);
// default constructor for archive
SplineSeg3() {}
///