/// Create a vertex
///
/// The caller must make sure to uphold all rules regarding vertex
/// uniqueness.
///
/// # Implementation note
///
/// This method is the only means to create `Vertex` instances, outside of
/// unit tests. That puts this method is in a great position to enforce
/// vertex uniqueness rules, instead of requiring the user to uphold those.
Create a vertex
The caller must make sure to uphold all rules regarding vertex
uniqueness.
Create a vertex The caller must make sure to uphold all rules regarding vertex uniqueness .
pub fn create(&mut self, point: Point<3>) -> Vertex {
        let handle = Handle::new(point);
        self.vertices
            .add(&point.into(), handle.inner())
            .expect("Error adding vertex");
        Vertex(handle)
    }
pub fn create ( & mut self , point : Point < 3 > ) -> Vertex { let handle = Handle :: new ( point ) ; self . vertices . add ( & point . into ( ) , handle . inner ( ) ) . expect ( " " ) ; Vertex ( handle ) }
Create a vertex
The caller must make sure to uphold all rules regarding vertex
uniqueness.
Create a vertex The caller must make sure to uphold all rules regarding vertex uniqueness .
&mut self
point
Point<3>
implementation note
This method is the only means to create `Vertex` instances, outside of
unit tests. That puts this method is in a great position to enforce
vertex uniqueness rules, instead of requiring the user to uphold those.
This method is the only means to create ` Vertex ` instances outside of unit tests . That puts this method is in a great position to enforce vertex uniqueness rules instead of requiring the user to uphold those .