型材整理、点位判断与模型查找,一次补齐Profile organization, point classification, and model lookup—now together.

V1.0.8.3 新增五个 Grasshopper 组件,覆盖型材信息提取、线框排布、最近对象查找、点的路径排序与闭合区域分类;现有导出、几何中点和替换流程也更贴近日常使用。V1.0.8.3 adds five Grasshopper components for profile information, frame layout, nearest-object lookup, point routing, and closed-region classification. Export, geometry-center, and replacement workflows are also improved for daily use.

V1.0.8.3Rhino 7 / Rhino 8
Grasshopper

版本重点Release highlights

先识别型材的中心基准与长度,再把模型整齐排进线框;也可以为点列表规划访问顺序、判断点在闭合轮廓的内外位置,或从一组 Brep 中快速找出离指定点最近的对象。Identify a profile’s center reference and length, then lay models out in frames. You can also order visits through points, classify points against a closed boundary, or find the Brep nearest a chosen point.

新增组件New components

通用型材信息

通用型材信息General Profile Information

从一个型材模型取得后续摆放与导出所需的基准信息Extract a reference set for later layout and export

输入一个 Brep,输出位于型材中心的基准平面、与该方向一致的外包围盒,以及型材长度。它适合在模型没有预先记录方向或长度时建立统一参考,再继续连接到排布、检查或导出流程。Input one Brep to obtain a center reference plane, an oriented bounding box, and profile length. Use it to establish a consistent reference when direction or length has not been stored, then continue to layout, inspection, or export.

型材线框排布

型材线框排布Profile Frame Layout

把多根型材按行放入统一尺寸的矩形线框Place multiple profiles in equal rectangular frames by rows

输入型材列表、首格左上角、线框宽高和每行数量,得到逐项对齐的模型副本与闭合线框。默认从世界原点开始,沿 +X 排列并向 −Y 换行;可在右键菜单中选择普通图元或带 LK 图层角色的输出。Input a profile list, the first cell’s top-left point, frame width and height, and the per-row count. The component returns aligned model copies and closed frames. It starts at the world origin by default, advances along +X, and wraps toward −Y; its context menu can output normal geometry or LK layer-tagged geometry.

最近 Brep 索引

最近 Brep 索引Closest Brep Index

从候选模型中定位离查询点最近的一项Locate the candidate model nearest the query point

将 Brep 列表和一个查询点接入后,组件输出最近 Brep 在原列表中的序号。无效 Brep 会被跳过;当两个候选距离相同时,结果保持稳定,方便将序号用于后续列表筛选或标记。Connect a Brep list and one query point to output the nearest Brep’s original list index. Invalid Breps are skipped; equal-distance cases are resolved consistently, making the index reliable for later filtering or tagging.

最近邻点排序

最近邻点排序Nearest-Neighbor Point Sort

从指定起点生成连续的就近访问顺序Build a continuous nearest-visit order from a chosen start

输入点列表和零起始的起始序号,组件先保留该点,再反复选择离当前点最近的未访问点。输出排序后的点和对应原序号,适合驱动连线、访问顺序或加工路径的初步整理;重复点仍会保留。Input a point list and a zero-based start index. The component keeps that point first, then repeatedly selects the nearest unvisited point. It outputs the ordered points and their original indices for connecting, visit order, or early path preparation; duplicate points remain included.

点与闭合曲线

点与闭合曲线Points and Closed Curve

一次将点分为线内、线上与线外三组Classify points as inside, on, or outside in one step

输入点列表和一根有效平面闭合曲线,组件分别输出线内、线上和线外点及其原序号。容差未接入时使用当前 Rhino 文档的绝对容差;超出曲线平面容差的点归入线外,避免把远处点投影后误判到区域内。Input a point list and one valid planar closed curve to output inside, on-curve, and outside points with their original indices. When tolerance is not connected, the current Rhino document’s absolute tolerance is used; points outside the curve plane tolerance remain outside instead of being projected and misclassified.

组件更新Component updates

STEP 导出

STEP 导出STEP Export

导出型材时,模型仍需有编号;但没有预存基准平面或长度的模型现在也可继续导出。组件会从模型建立可用的中心基准和长度,用于导出与超长判断,并且不再在导出前改变当前 Rhino 视角。Profile export still requires an identifier, but models without stored reference planes or lengths can now continue through export. The component establishes a usable center reference and length for export and overlength checks, and no longer changes the current Rhino view before exporting.

几何中点

几何中点Geometry Center

选择“包围盒中心”时,直接模型与经过 Grasshopper 外包围盒处理后的几何得到一致的中心结果。对于 Group,组件会按所有有效直接成员的整体包围盒计算中心,更适合表示整组对象的位置。In Bounding Box Center mode, direct geometry and geometry passed through Grasshopper’s bounding-box workflow now return consistent centers. For Groups, the component calculates the center from the combined bounding box of valid direct members, better representing the whole group.

问题修复Fixes

替换对象

替换对象Replace Object

替换完成后,结果端会保留最近一次操作结果,Grasshopper 因文档更新重新求解时不再出现结果端意外为空的情况。不同类型的常用几何也获得更可靠的替换处理。After a replacement completes, the result output retains the latest operation result, avoiding an unexpectedly empty output when Grasshopper recomputes after a document update. Common geometry types also receive more reliable replacement handling.