+ {generationProvider === "kittycad-cad" ? (
+
+
+
+
+ 官方建模工具
+
+
+ 这一组直接走官方{" "}
+
+ ws/modeling/commands
+
+ ,不是前端假按钮。
+
+
+
+ {modelingConnectionState}
+
+
+
+
+
+ setModelingWidth(event.target.value)
+ }
+ placeholder="宽度"
+ value={modelingWidth}
+ />
+
+ setModelingHeight(event.target.value)
+ }
+ placeholder="高度"
+ value={modelingHeight}
+ />
+
+ setModelingDepth(event.target.value)
+ }
+ placeholder="拉伸深度"
+ value={modelingDepth}
+ />
+
+
+
+
+ setModelingEdgeIndices(event.target.value)
+ }
+ placeholder="边索引,例如 0,1,2,3"
+ value={modelingEdgeIndices}
+ />
+
+
+ setModelingCutSize(event.target.value)
+ }
+ placeholder="半径 / 距离"
+ value={modelingCutSize}
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+ 当前平面:
+
+ {truncateIdentifier(modelingPlaneId, 16)}
+
+
+
+ 当前草图:
+
+ {truncateIdentifier(modelingSketchId, 16)}
+
+ ,当前实体:
+
+ {truncateIdentifier(modelingSolidId, 16)}
+
+
+
+ 当前选择:
+
+ {modelingSelectedEntityIds.length > 0
+ ? modelingSelectedEntityIds
+ .map((item) =>
+ truncateIdentifier(item, 10)
+ )
+ .join(", ")
+ : "未选择"}
+
+
+
+
+ {modelingError ? (
+
+ {modelingError}
+
+ ) : null}
+
+ {modelingLogLines.length > 0 ? (
+
+
+ session log
+
+
+ {modelingLogLines.slice(0, 3).map((line) => (
+
{line}
+ ))}
+
+
+ ) : null}
+