Load the pattern from JSON file. You can download the serialized pattern in the following link.
# ==============================================================================
# Import
# ==============================================================================
import os
from compas_rv2.datastructures import Pattern
from compas_rhino.artists import MeshArtist
# ==============================================================================
# File
# ==============================================================================
HERE = os.path.dirname(__file__)
FILE = os.path.join(HERE, 'data', 'armadillo_pattern_initial.json')
pattern = Pattern.from_json(FILE)
# ==============================================================================
# Visualization
# ==============================================================================
artist = MeshArtist(pattern, layer="CSD2::form")
artist.clear_layer()
artist.draw()