コード例 #1
0
    def clear_edgelabels(self):

        set_objects_show_names(objects=self.edge_objects, show=False)
コード例 #2
0
    def draw_edgelabels(self):

        set_objects_show_names(objects=self.edge_objects, show=True)
コード例 #3
0
 def draw_vertexlabels(self):
     set_objects_show_names(objects=self.vertex_objects, show=True)
コード例 #4
0
 def clear_vertexlabels(self):
     set_objects_show_names(objects=self.vertex_objects, show=False)
コード例 #5
0
ファイル: faceartist.py プロジェクト: yijiangh/compas
 def draw_facelabels(self, text=None, color=None):
     set_objects_show_names(objects=self.face_objects, show=True)
コード例 #6
0
ファイル: faceartist.py プロジェクト: yijiangh/compas
 def clear_facelabels(self):
     set_objects_show_names(objects=self.face_objects, show=False)
コード例 #7
0
              pos=[0, 0, 0],
              text='text',
              layer='Collection 2',
              color=[1, 0, 0])

    xdraw_points(points=points)
    xdraw_lines(lines=lines, layer='Collection 2')
    xdraw_cylinders(cylinders=cyls, layer='Collection 2')
    xdraw_spheres(spheres=spheres)
    xdraw_cubes(cubes=cubes, layer='Collection 2')
    xdraw_texts(texts=texts, layer='Collection 2')

    draw_plane(Lx=2,
               Ly=1,
               dx=0.5,
               dy=0.5,
               name='plane',
               layer=None,
               color=[1, 0, 1])

    vertices = [[-1, 0, 1], [-2, 0, 2], [-2, 1, 1], [-1, 1, 0]]
    faces = [[0, 1, 2], [2, 3, 0]]
    mesh = xdraw_mesh(name='mesh',
                      vertices=vertices,
                      faces=faces,
                      layer='Collection 2',
                      color=[1, 0, 1])

    objects = xdraw_pointcloud(points=points)
    set_objects_show_names(objects=objects, show=True)