-
Notifications
You must be signed in to change notification settings - Fork 12
/
shape_explorer.cpp
45 lines (44 loc) · 918 Bytes
/
shape_explorer.cpp
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
40
41
42
43
44
45
std::string SurfaceTypeName ( enum GeomAbs_SurfaceType t )
{
switch (t)
{
case GeomAbs_Plane:
return "Plane";
case GeomAbs_Cylinder:
return "Cylinder";
case GeomAbs_Cone:
return "Cone";
case GeomAbs_Sphere:
return "Sphere";
case GeomAbs_Torus:
return "Torus";
case GeomAbs_BezierSurface:
return "Bezier";
case GeomAbs_BSplineSurface:
return "BSplineSurface";
case GeomAbs_SurfaceOfRevolution:
return "SurfaceOfRevolution";
case GeomAbs_SurfaceOfExtrusion:
return "SurfaceOfExtrusion";
case GeomAbs_OffsetSurface:
return "OffsetSurface";
case GeomAbs_OtherSurface:
return "OtherSurface";
}
return "UNKNOWN";
}
std::string OrientationName (enum TopAbs_Orientation o)
{
switch (o)
{
case TopAbs_FORWARD:
return "FORWARD";
case TopAbs_REVERSED:
return "REVERSED";
case TopAbs_INTERNAL:
return "INTERNAL";
case TopAbs_EXTERNAL:
return "EXTERNAL";
}
return "UNKNOWN";
}