pub fn point_ids(&mut self, plot: &mut Plot, mesh: &Mesh) {
        if mesh.ndim == 2 {
            mesh.points.iter().for_each(|point| {
                self.canvas_point_ids
                    .draw(point.coords[0], point.coords[1], format!("{}", point.id).as_str());
            });
        } else {
            mesh.points.iter().for_each(|point| {
                self.canvas_point_ids.draw_3d(
                    point.coords[0],
                    point.coords[1],
                    point.coords[2],
                    format!("{}", point.id).as_str(),
                );
            });
        }
        plot.add(&self.canvas_point_ids);
    }
/// Draws all point ids (labels)
///
/// # Input
///
/// * `plot` -- the plot instance (to be updated)
/// * `mesh` -- the mesh
Draws all point ids (labels)
Draws all point ids ( labels )
pub fn point_ids(&mut self, plot: &mut Plot, mesh: &Mesh) {
        if mesh.ndim == 2 {
            mesh.points.iter().for_each(|point| {
                self.canvas_point_ids
                    .draw(point.coords[0], point.coords[1], format!("{}", point.id).as_str());
            });
        } else {
            mesh.points.iter().for_each(|point| {
                self.canvas_point_ids.draw_3d(
                    point.coords[0],
                    point.coords[1],
                    point.coords[2],
                    format!("{}", point.id).as_str(),
                );
            });
        }
        plot.add(&self.canvas_point_ids);
    }
pub fn point_ids ( & mut self , plot : & mut Plot , mesh : & Mesh ) { if mesh . ndim == 2 { mesh . points . iter ( ) . for_each ( | point | { self . canvas_point_ids . draw ( point . coords [ 0 ] , point . coords [ 1 ] , format ! ( " " point id ) . as_str ( ) ) ; } ) ; } else { mesh . points . iter ( ) . for_each ( | point | { self . canvas_point_ids . draw_3d ( point . coords [ 0 ] , point . coords [ 1 ] , point . coords [ 2 ] , format ! ( " " point id ) . as_str ( ) , ) ; } ) ; } plot . add ( & self . canvas_point_ids ) ; }
Draws all point ids (labels)
Draws all point ids ( labels )
&mut self
plot
&mut Plot
mesh
&Mesh
&mut self
plot
&mut Plot
mesh
&Mesh
input
`plot` -- the plot instance (to be updated)
`mesh` -- the mesh
` plot ` -- the plot instance ( to be updated ) ` mesh ` -- the mesh