/// Parses all vertex coordinates from the OFF file.
Parses all vertex coordinates from the OFF file.
Parses all vertex coordinates from the OFF file .
fn parse_vertices<T: Float>(
        &mut self,
        count: usize,
        dim: usize,
    ) -> OffParseResult<Vec<Point<T>>> {
        // Reads all vertices.
        let mut vertices = Vec::with_capacity(count);
        // Add each vertex to the vector.
        for _ in 0..count {
            let mut v = Vec::with_capacity(dim);
            for _ in 0..dim {
                v.push(self.iter.parse_next()?);
            }
            vertices.push(v.into());
        }
        Ok(vertices)
    }
fn parse_vertices < T : Float > ( & mut self , count : usize , dim : usize , ) -> OffParseResult < Vec < Point < T > > > { // Reads all vertices. let mut vertices = Vec :: with_capacity ( count ) ; // Add each vertex to the vector. for _ in 0 .. count { let mut v = Vec :: with_capacity ( dim ) ; for _ in 0 .. dim { v . push ( self . iter . parse_next ( ) ? ) ; } vertices . push ( v . into ( ) ) ; } Ok ( vertices ) }
Parses all vertex coordinates from the OFF file.
Parses all vertex coordinates from the OFF file .
&mut self
count
usize
dim
usize