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

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

    // 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;
    
    //- Closest point on curve.
    virtual Acad::ErrorStatus getClosestPointTo (const AcGePoint3d givenPnt, AcGePoint3d pointOnCurve, Adesk::Boolean extend =Adesk::kFalse) const ;
    virtual Acad::ErrorStatus getClosestPointTo (const AcGePoint3d givenPnt, const AcGeVector3d direction, AcGePoint3d pointOnCurve, Adesk::Boolean extend =Adesk::kFalse) const ;
    
    //- Get split copies of the curve.
    virtual Acad::ErrorStatus getSplitCurves (const AcGeDoubleArray &params, AcDbVoidPtrArray &curveSegments) const ;
    virtual Acad::ErrorStatus getSplitCurves (const AcGePoint3dArray &points, AcDbVoidPtrArray &curveSegments) const ;
    

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

    getClosestPointTo用于最近点判断,如果少了这个函数,将会删除裁剪返回的所有实体。

    getSplitCurves返回裁剪后的实体。

  • 相关阅读:
    elk.postman_collection.json
    win10 env
    run fink local
    run kafka local
    打码util
    DataFormatVerifyUtil
    springboot logging.config=classpath:log4j2.xml -Dlogging.config=config/log4j2.xml
    server.port server.servlet.context-path resources freemarker mybatis mail
    maven-war-plugin
    html头部有一行信息导致所有的css和jss都是 https了
  • 原文地址:https://www.cnblogs.com/ztcad/p/13808458.html
Copyright © 2011-2022 走看看