| 后一修订版 | 前一修订版 |
| rhino二次开发:rhinocompute_7:index [2026/06/05 17:01] – 创建 张叶安 | rhino二次开发:rhinocompute_7:index [2026/06/05 17:07] (当前版本) – 移除 张叶安 |
|---|
| ====== RhinoCompute 教学文档 ====== | |
| |
| 本文档是一套可导入 DokuWiki 的 RhinoCompute 教学材料。每个章节是一个独立页面文件,建议放在同一个命名空间中,例如 ''rhinocompute:''。 | |
| |
| ===== 学习目标 ===== | |
| |
| 完成本教程后,读者应能: | |
| |
| * 解释 RhinoCompute、compute.geometry、rhino.compute、Rhino.Inside、Hops 之间的关系。 | |
| * 在本地 Windows 开发机上编译、启动、调试 Compute。 | |
| * 用 Python、JavaScript、.NET 或直接 REST 请求调用 Compute。 | |
| * 把 Grasshopper 定义封装成 Hops 函数,并配置远程 Compute。 | |
| * 理解 Windows/IIS 生产部署、API Key、核心小时计费和常见运维参数。 | |
| * 根据日志定位 401、500、超时、请求体过大、授权失败等问题。 | |
| |
| ===== 章节目录 ===== | |
| |
| * [[01_concepts_and_architecture|01 概念与架构]] | |
| * [[02_environment_and_version_selection|02 环境准备与版本选择]] | |
| * [[03_local_debugging|03 本地运行与调试]] | |
| * [[04_client_calls_and_rest_patterns|04 客户端调用与 REST 模式]] | |
| * [[05_grasshopper_hops_workflow|05 Grasshopper 与 Hops 工作流]] | |
| * [[06_production_windows_iis|06 Windows/IIS 生产部署]] | |
| * [[07_licensing_billing_and_security|07 授权计费与安全]] | |
| * [[08_custom_endpoints_and_plugins|08 自定义端点与插件扩展]] | |
| * [[09_linux_and_operations|09 Linux 现状与运维]] | |
| * [[10_troubleshooting_and_exercises|10 排错清单与练习]] | |
| |
| ===== 推荐阅读顺序 ===== | |
| |
| 初学者按 01 到 10 顺序阅读。已经有 Rhino/Grasshopper 经验的读者,可以先读 01、03、05。准备上线部署的读者,应重点阅读 06、07、09、10。 | |
| |
| ===== 本地文件说明 ===== | |
| |
| 本文档生成目录: | |
| |
| <code> | |
| E:\tmp\rhinocompute_dokuwiki | |
| </code> | |
| |
| 当前工作区中也存在 Compute 源码: | |
| |
| <code> | |
| E:\tmp\compute.rhino3d | |
| E:\tmp\compute.rhino3d-7.x | |
| </code> | |
| |
| 其中 ''E:\tmp\compute.rhino3d\src\README.md'' 说明了两个关键工程: | |
| |
| * ''compute.geometry'':主几何服务,暴露 Rhino 几何能力和 Grasshopper 求解能力。 | |
| * ''rhino.compute'':更高层的服务入口,负责认证、反向代理、子进程管理、超时和生命周期控制。 | |
| |
| ===== DokuWiki 导入建议 ===== | |
| |
| 如果你的 DokuWiki 页面命名空间为 ''rhinocompute'',可将这些文件作为页面内容导入: | |
| |
| ^ 文件 ^ 推荐页面 ID ^ | |
| | ''00_index.txt'' | ''rhinocompute:start'' | | |
| | ''01_concepts_and_architecture.txt'' | ''rhinocompute:01_concepts_and_architecture'' | | |
| | ''02_environment_and_version_selection.txt'' | ''rhinocompute:02_environment_and_version_selection'' | | |
| | ''03_local_debugging.txt'' | ''rhinocompute:03_local_debugging'' | | |
| | ''04_client_calls_and_rest_patterns.txt'' | ''rhinocompute:04_client_calls_and_rest_patterns'' | | |
| | ''05_grasshopper_hops_workflow.txt'' | ''rhinocompute:05_grasshopper_hops_workflow'' | | |
| | ''06_production_windows_iis.txt'' | ''rhinocompute:06_production_windows_iis'' | | |
| | ''07_licensing_billing_and_security.txt'' | ''rhinocompute:07_licensing_billing_and_security'' | | |
| | ''08_custom_endpoints_and_plugins.txt'' | ''rhinocompute:08_custom_endpoints_and_plugins'' | | |
| | ''09_linux_and_operations.txt'' | ''rhinocompute:09_linux_and_operations'' | | |
| | ''10_troubleshooting_and_exercises.txt'' | ''rhinocompute:10_troubleshooting_and_exercises'' | | |
| |
| ===== 主要资料来源 ===== | |
| |
| * [[https://developer.rhino3d.com/guides/compute/|McNeel Compute Guides]] | |
| * [[https://developer.rhino3d.com/en/guides/compute/development/|Running and Debugging Compute Locally]] | |
| * [[https://developer.rhino3d.com/guides/compute/compute-python-getting-started/|Calling Compute with Python]] | |
| * [[https://developer.rhino3d.com/guides/compute/compute-javascript-getting-started/|Calling Compute with JavaScript]] | |
| * [[https://developer.rhino3d.com/guides/compute/compute-net-getting-started/|Calling Compute with .NET]] | |
| * [[https://developer.rhino3d.com/guides/compute/hops-component/|The Hops Component]] | |
| * [[https://developer.rhino3d.com/guides/compute/deploy-to-iis/|Deployment to Production Servers]] | |
| * [[https://developer.rhino3d.com/guides/compute/core-hour-billing/|Licensing & Billing]] | |
| * [[https://developer.rhino3d.com/guides/compute/custom-endpoints/|Extending Compute with Custom Endpoints]] | |
| * [[https://developer.rhino3d.com/guides/compute/compute-faq/|Compute Frequently Asked Questions]] | |
| * [[https://developer.rhino3d.com/guides/compute/compute-linux-getting-started/|Getting Started with Rhino.Compute on Linux]] | |
| |
| ---- | |
| |
| 最后更新:2026-06-05 | |
| |