create_nodes_linear
Create evenly spaced nodes along a straight line to model bridge girders. Specify count, starting point, and spacing instead of listing every coordinate.
Instructions
Create evenly-spaced nodes along a straight line — the preferred way to model
a bridge girder (等间距直线批量创建节点).
Instead of listing 101 coordinates for a 100m span at 1m intervals, just specify
the count, starting point, and spacing in each direction.
Args:
count: Number of nodes to create (节点数量)
start_x: X coordinate of the first node (起点X坐标)
start_y: Y coordinate of the first node (起点Y坐标)
start_z: Z coordinate of the first node (起点Z坐标)
spacing_x: X increment between nodes, m (相邻节点X方向间距)
spacing_y: Y increment between nodes (相邻节点Y方向间距)
spacing_z: Z increment between nodes (相邻节点Z方向间距)
start_id: Requested ID of the first node (期望的起始节点编号).
HONORED ONLY when the model has no conflicting IDs — the
backend assigns its own numbering when start_id is taken.
The returned message reports the IDs actually assigned;
always trust those, not start_id.
(编号可能被后端改派,请以返回消息中的实际编号为准)
is_merged: Whether to merge duplicate nodes (是否合并重合节点).
When merging occurs, fewer nodes are created than requested.
merge_error: Merge tolerance, default 1e-3 (合并容差)
Examples:
# 100m simply-supported beam, 101 nodes at 1m pitch along X axis:
create_nodes_linear(count=101, start_x=0, spacing_x=1.0)
# Two-span 50m+50m continuous beam, start x from 0:
create_nodes_linear(count=101, start_x=0, spacing_x=1.0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| start_x | No | ||
| start_y | No | ||
| start_z | No | ||
| start_id | No | ||
| is_merged | No | ||
| spacing_x | No | ||
| spacing_y | No | ||
| spacing_z | No | ||
| merge_error | No |