38 pnt(-1. + 2 * (
double)num / numSubEdges, 0., 0., pnt1);
39 pnt(-1. + 2 * (
double)(num + 1) / numSubEdges, 0., 0, pnt2);
63 pnt(-1. + 2 * (
double)num / numSubEdges, 0., 0., pnt1);
64 pnt(-1. + 2 * (
double)(num + 1) / numSubEdges, 0., 0, pnt2);
78 std::vector<double> &ts)
89 std::vector<double> &ts)
95 for(
size_t i = 0; i < ts.size(); ++i) ts[i] = -1 + 2 * ts[i];
99 std::vector<double> &ts)
110 for(
size_t i = 0; i < ts.size(); ++i) ts[i] = -1 + 2 * ts[i];
114 for(
int i = 0; i < order + 1; ++i) {
116 lagNodes(i, 0) = v->
x();
117 lagNodes(i, 1) = v->
y();
118 lagNodes(i, 2) = v->
z();
121 std::vector<SPoint3> pts(bezNodes.
size1());
122 pts[0][0] = bezNodes(0, 0);
123 pts[0][1] = bezNodes(0, 1);
124 pts[0][2] = bezNodes(0, 2);
125 pts[order][0] = bezNodes(1, 0);
126 pts[order][1] = bezNodes(1, 1);
127 pts[order][2] = bezNodes(1, 2);
128 for(
int i = 0; i < order - 1; ++i) {
129 pts[i + 1][0] = bezNodes(i + 2, 0);
130 pts[i + 1][1] = bezNodes(i + 2, 1);
131 pts[i + 1][2] = bezNodes(i + 2, 2);
134 for(
size_t i = 0; i < ts.size(); ++i) ts[i] = -1 + 2 * ts[i];