def draw_edge_rhino(edge): # ============================================================================== # Use a frame artist to visualize the boundary frame. # ============================================================================== artist = FrameArtist(edge['frames'][0], layer=edge['layer'] + "::Frame", scale=0.3) artist.clear_layer() artist.draw() # ============================================================================== # Use a frame artist to visualize the frame of the intersection points. # ============================================================================== artist = FrameArtist(edge['frames'][1], layer=edge['layer'] + "::Frame", scale=0.3) artist.clear_layer() artist.draw() # ============================================================================== # Use a point artist to visualize the intersection points. # ============================================================================== PointArtist.draw_collection(edge['intersections'], layer=edge['layer'] + "::Intersections", clear=True) # ============================================================================== # Use a mesh artist to visualize beams # ============================================================================== artist = MeshArtist(None, layer=edge['layer'] + "::BBox") artist.clear_layer() for mesh in edge['meshes']: artist = MeshArtist(mesh, layer=edge['layer'] + "::BBox") artist.draw_mesh()
# Use a frame artist to visualize the boundary frame. # ============================================================================== artist = FrameArtist(frame, layer="SOUTH::Frame", scale=0.3) artist.clear_layer() artist.draw() # ============================================================================== # Use a point artist to visualize the intersection points. # ============================================================================== PointArtist.draw_collection(intersections, layer="SOUTH::Intersections", clear=True) # ============================================================================== # Use a frame artist to visualize the frame of the intersection points. # ============================================================================== artist = FrameArtist(frame1, layer="SOUTH::Frame1", scale=0.3) artist.clear_layer() artist.draw() # ============================================================================== # Use a mesh artist to visualize the bounding box. # ============================================================================== artist = MeshArtist(bbox, layer="SOUTH::Bbox1") artist.clear_layer() artist.draw_mesh()