def select_faces(self): """Select faces of the mesh. Returns ------- list A list of face identifiers. """ guids = compas_rhino.select_meshes() faces = [self.artist.guid_face[guid] for guid in guids if guid in self.artist.guid_face] return faces
def select_faces(self, message="Select faces."): """Select faces of the volmesh. Returns ------- list A list of face identifiers. """ guids = compas_rhino.select_meshes(message=message) faces = [ self.guid_face[guid] for guid in guids if guid in self.guid_face ] return faces
def select_faces(self): """Select faces of the mesh. Returns ------- list A list of face identifiers. Notes ----- This is only possible if the mesh was drawn with individual, unjoined faces. """ guids = compas_rhino.select_meshes() faces = [ self.guid_face[guid] for guid in guids if guid in self.guid_face ] return faces
assembly_interfaces = XFunc('compas_rbe.interfaces.assembly_interfaces_xfunc', tmpdir=compas_rbe.TEMP) compute_interface_forces = XFunc('compas_rbe.equilibrium.compute_interface_forces_xfunc', tmpdir=compas_rbe.TEMP) # ============================================================================== # make an artist # ============================================================================== artist = AssemblyArtist(None, layer='RBE') artist.clear_layer() # ============================================================================== # initialise assembly from Rhino geometry # ============================================================================== guids = compas_rhino.select_meshes() assembly = Assembly.from_meshes(guids) artist.assembly = assembly # ============================================================================== # draw blocks # ============================================================================== artist.draw_blocks() artist.draw_vertices(color={key: '#ff0000' for key in assembly.vertices_where({'is_support': True})}) artist.redraw() # ============================================================================== # identify block interfaces