尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Rhino.Scripting.QrCode is a small library for creating QR codes as Rhino3D Meshes or Hatches. It uses ZXing.Net to encode the text. The QR code is vector geometry, not an image, so it stays sharp at any size.
It works in Rhino 8 and later, from F#, C# and IronPython.
The QR code is created at the World Origin with a size of 1.0 x 1.0 units, using the high error correction level (30%). Text with non-ASCII characters is encoded as UTF-8.
For example in the Fesh.Rhino scripting editor:
#r "nuget: Rhino.Scripting.QrCode"
open Rhino
open Rhino.Geometry
open Rhino.Scripting
let doc = RhinoDoc.ActiveDoc
// as a Mesh, scaled to 50 units
let mesh = QrCode.asMesh "https://www.rhino3d.com"
mesh.Transform(Transform.Scale(Point3d.Origin, 50.0)) |> ignore
doc.Objects.AddMesh(mesh) |> ignore
// as Hatches, using the 'Solid' hatch pattern of the active document
for hatch in QrCode.asHatches "https://www.rhino3d.com" do
doc.Objects.AddHatch(hatch) |> ignore
doc.Views.Redraw()
For example in the Rhino 8 script editor:
#r "nuget: Rhino.Scripting.QrCode"
using Rhino;
using Rhino.Scripting;
var mesh = QrCode.asMesh("https://www.rhino3d.com");
RhinoDoc.ActiveDoc.Objects.AddMesh(mesh);
RhinoDoc.ActiveDoc.Views.Redraw();
Get the files Rhino.Scripting.QrCode.dll, zxing.dll and FSharp.Core.dll into one folder.
Run dotnet build on this repository, then they are all in bin/Release/net48.
If you download dll files instead, you might need to unblock them first:
Reference the dll in IronPython:
import clr
clr.AddReferenceToFileAndPath(r"C:\path\to\bin\Release\net48\Rhino.Scripting.QrCode.dll")
import Rhino
from Rhino.Scripting import QrCode
mesh = QrCode.asMesh("https://www.rhino3d.com")
Rhino.RhinoDoc.ActiveDoc.Objects.AddMesh(mesh)
Rhino.RhinoDoc.ActiveDoc.Views.Redraw()
goswinr.github.io/Rhino.Scripting.QrCode
There are other QR code tools for Rhino that create images instead of geometry, see discourse.mcneel.com.
Contributions are welcome even for small things like typos. If you have problems with this library please submit an issue.
see CHANGELOG.md