• ISSN: 1674-7461
  • CN: 11-5823/TU
  • 主管:中国科学技术协会
  • 主办:中国图学学会
  • 承办:中国建筑科学研究院有限公司

两种在Revit中切割复杂轮廓楼板的新算法

Two New Algorithms for Cutting Complex Contour Floor in Revit

  • 摘要: 楼板切割本质上是一个多边形裁剪问题,然而现有算法涉及的数据结构和实现流程较为复杂,难以在实际中广泛应用。市场上一些主流的BIM深化软件虽然提供了楼板切割功能,但大多只能处理规则的楼板,而无法应对曲线、凹多边形等复杂边界的楼板。本文研究了两种在Revit中切割楼板的新方法:一种是基于几何计算,通过对切割线与楼板原轮廓线之间碰撞点的排序来求解切割后的新轮廓,该方法也适用于Revit之外的BIM软件平台,适用范围广泛;另一种方法基于升维法思想,将二维平面问题转化为三维问题,并利用Revit开放的三维实体布尔运算接口进行求解。这两种方法均不涉及复杂的数据结构,易于实现,为二次开发人员提供了有价值的参考。

     

    Abstract: Floor slab cutting is fundamentally a polygon clipping problem. However, existing algorithms involve complex data structures and implementation processes, making them difficult to apply broadly in practice. While some mainstream BIM software on the market offer floor slab cutting functions, most can only handle regular slabs and cannot address complex boundaries such as curves and concave polygons. This paper presents two new methods for cutting floor slabs in Revit. The first method is based on geometric calculations, which solves the new profile after cutting by sorting collision points between the cutting lines and the original slab contour lines. This method is applicable to BIM software platforms beyond Revit and has a broad range of applicability. The second method, based on the concept of dimensional elevation, transforms the two-dimensional problem into a three-dimensional one and utilizes Revit's open 3D solid Boolean operation interface for solving. Both methods avoid complex data structures and are easy to implement, providing valuable references for developers involved in secondary development.

     

/

返回文章
返回