zoukankan      html  css  js  c++  java
  • ObjectARX自定义实体实现EX(EXTEND)命令

    ObjectARX自定义实体需要重载实现subIntersectWith和extend方法。

    // 2020-10-13 by www.cnblogs.com/ztcad
    virtual Acad::ErrorStatus subIntersectWith(const AcDbEntity *pEnt, AcDb::Intersect intType, AcGePoint3dArray points, 
        Adesk::GsMarker thisGsMarker = 0, Adesk::GsMarker otherGsMarker = 0) const;
    virtual Acad::ErrorStatus subIntersectWith(const AcDbEntity *pEnt, AcDb::Intersect intType, const AcGePlane& projPlane, AcGePoint3dArray points, 
        Adesk::GsMarker thisGsMarker = 0, Adesk::GsMarker otherGsMarker = 0) const;
    //- Extend the curve.
    virtual Acad::ErrorStatus extend (double newParam) ;
    virtual Acad::ErrorStatus extend (Adesk::Boolean extendStart, const AcGePoint3d &toPoint) ;
    

    subIntersectWith实际是第二个方法起作用,用于交点判断,

    extend实际也是第二个方法起作用,extendStart表示是否起点延伸,toPoint表示延伸到的位置。

  • 相关阅读:
    此生对我影响最大的三位老师
    介绍自己
    介绍自己
    第三周作业
    第二周作业
    PTA编程总结3
    PTA编程总结2
    PTA编程总结1
    2019年春季学期第七周作业.
    2019年春季学期第六周作业.
  • 原文地址:https://www.cnblogs.com/ztcad/p/13808418.html
Copyright © 2011-2022 走看看