摘要: |
根据AutoCAD图形的特点及AutoCAD中已有的功能提出,将封闭的窗口定义成“面域(region)”参与裁剪运算,并给出了面域的自动生成方法;提出将被裁图形实体分成开环实体和闭环实体分别进行处理:对开环实体,利用ObjectARX提供的实体交函数实现了求交和排序同步完成;对闭环实体,组合使用“面域”的布尔操作实现窗口裁剪。综合以上技术编写的窗口裁剪程序模块具有结构简单,稳定性好的特点。 |
关键词: 窗口裁剪 ObjectARX 样条曲线 布尔操作 AutoCAD |
DOI: |
修订日期:2001-01-17 |
基金项目: |
|
Study on Arbitrary Complicated Window Clipping Technology Base on AutoCAD |
|
|
Abstract: |
Based on the characteristics of AutoCAD drawing and functions of operating the drawing in AutoCAD, it is proposed that the closed window boundary should be transformed into the region before the calculation of window clipping and the generating method is given. The entities to be clipped are classified into open loop entities and closed loop entities. For the open loop entities, the steps of calculating the points of intersection and sorting these points are completed at one time by intersection function provided by ObjectARX; For the closed loop entities, the window clipping is completed by combining the boolean operator used in region. The window clipping program module programmed by using above technologies possess the characteristics of simpleness and stability. |
Key words: window clipping,ObjectARX,spline curve,boolean operation |