Beispiel #1
0
import compas
from compas.datastructures import Mesh
from compas_rhino.artists import MeshArtist

mesh = Mesh.from_obj(compas.get('tubemesh.obj'))
mesh.flip_cycles()

artist = MeshArtist(mesh, layer="ITA20::Tubemesh")
artist.clear_layer()
artist.draw()
artist.draw_vertexnormals()
import os
from compas.datastructures import Mesh
from compas_rhino.artists import MeshArtist

HERE = os.path.dirname(__file__)

FILE_I = os.path.join(HERE, 'data', 'form_dual.json')

mesh = Mesh.from_json(FILE_I)

artist = MeshArtist(mesh, layer="RV2::Normals")
artist.clear_layer()
artist.draw_edges()
artist.draw_vertexnormals(scale=1)