blob: cec97639bdfe6a04a10d89cd161518e2fcab540e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// File AppParCurves_MultiPoint.lxx
#include <Standard_OutOfRange.hxx>
#include <gp_Pnt.hxx>
#include <gp_Pnt2d.hxx>
inline Standard_OStream& operator<<(Standard_OStream& o,
const AppParCurves_MultiPoint& M)
{
M.Dump(o);
return o;
}
inline Standard_Integer AppParCurves_MultiPoint::NbPoints() const {
return nbP;
}
inline Standard_Integer AppParCurves_MultiPoint::NbPoints2d() const {
return nbP2d;
}
inline Standard_Integer AppParCurves_MultiPoint::Dimension(const Standard_Integer Index) const
{
if (Index < 0 || Index > (nbP + nbP2d)) {
Standard_OutOfRange::Raise();
}
if (Index <= nbP) {
return 3;
}
else {
return 2;
}
}
|