本文整理汇总了C++中ParameterData::getPointer方法的典型用法代码示例。如果您正苦于以下问题:C++ ParameterData::getPointer方法的具体用法?C++ ParameterData::getPointer怎么用?C++ ParameterData::getPointer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParameterData
的用法示例。
在下文中一共展示了ParameterData::getPointer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: debug
void
BrepHandler::extractFace(const DirectoryEntry* de, bool orientWithSurface) {
// spec says the surface can be:
// parametric spline surface
// ruled surface
// surface of revolution
// tabulated cylinder
// rational b-spline surface
// offset surface
// plane surface
// rccyl surface
// rccone surface
// spherical surface
// toroidal surface
debug("########################## E X T R A C T F A C E");
ParameterData params;
_iges->getParameter(de->paramData(), params);
Pointer surfaceDE = params.getPointer(1);
int surf = extractSurface(_iges->getDirectoryEntry(surfaceDE));
int face = handleFace(orientWithSurface, surf);
int numLoops = params.getInteger(2);
bool isOuter = params.getLogical(3) || true; // outer is not set in IGES from Pro/E!
for (int i = 4; (i-4) < numLoops; i++) {
Pointer loopDE = params.getPointer(i);
extractLoop(_iges->getDirectoryEntry(loopDE), isOuter, face);
isOuter = false;
}
}
示例2: handleSurfaceOfRevolution
int
BrepHandler::extractSurfaceOfRevolution(const ParameterData& params) {
Pointer linePtr = params.getPointer(1);
Pointer curvePtr = params.getPointer(2);
double startAngle = params.getReal(3);
double endAngle = params.getReal(4);
// load the line (axis of revolution)
int line = extractLine(linePtr);
// load the curve (generatrix)
int curve = extractCurve(_iges->getDirectoryEntry(curvePtr), false);
return handleSurfaceOfRevolution(line, curve, startAngle, endAngle);
}