TA的每日心情![](source/plugin/dsu_paulsign/img/emot/kx.gif) | 开心 昨天 15:23 |
---|
签到天数: 69 天 [LV.6]常住居民II
管理员
- 积分
- 2704
|
void aHLISurface::createContours(AcGeDoubleArray &Slices, AcGeIntArray &Nslices)
{
int i, j, numInt;
AcGeInterval interval;
AcGeIntersectError err;
AcGePoint3d origin;
AcDbVoidPtrArray srfArray;
aHLISurface *bsrf;
AcGePlane plne;
AcGeNurbSurface nurbSrf;
AcGeSurfSurfInt srfInter;
explode(srfArray); // returns a set of Bezier patches for this surface
for(i=0; i < Slices.length(); i++) { // at each slice elevation, set the plane and intersect
origin.z = Slices.at(i);
plne.set(origin, AcGeVector3d::kXAxis, AcGeVector3d::kYAxis);
for(j=0; j < srfArray.length(); j++) {
bsrf = (aHLISurface *)(srfArray.at(j));
bsrf->defineAcGeNurbSurface(nurbSrf); // get the AcGeNurbSurface for this bezier patch
srfInter.set(nurbSrf, plne);
numInt = srfInter.numResults(err);
}
}
} |
|