Logo Rhino.Scripting.QrCode

QrCode Module

This module provides functions to create QR codes as Rhino Meshes or Hatches.

Functions and values

Function or value Description

asHatches txt

Full Usage: asHatches txt

Parameters:
    txt : string - The text to encode in the QR code.

Returns: Hatch[] An array of Hatches covering the black modules of the QR code.

Creates a QR code as Hatches. Located at World Origin, total size 1.0 unit. Uses the 'Solid' hatch pattern from the active Rhino document, and adds it to the document if it is missing. Uses ErrorCorrectionLevel.H (high, 30%). Text with non ASCII characters is encoded as UTF-8.

txt : string

The text to encode in the QR code.

Returns: Hatch[]

An array of Hatches covering the black modules of the QR code.

asMesh txt

Full Usage: asMesh txt

Parameters:
    txt : string - The text to encode in the QR code.

Returns: Mesh A Mesh with one quad face per black module of the QR code.

Creates a QR code as a Mesh made from Quads. Located at World Origin, size 1.0 unit. Uses ErrorCorrectionLevel.H (high, 30%). Text with non ASCII characters is encoded as UTF-8.

txt : string

The text to encode in the QR code.

Returns: Mesh

A Mesh with one quad face per black module of the QR code.

Type something to start searching.