fn retrieve_point(&self, cell_id: VD::CellIndex) -> Result<geometry::Point<I>, BvError> {
        let (index, cat) = self.diagram.get_cell(cell_id)?.get().source_index_2();
        match cat {
            VD::SourceCategory::SinglePoint => Ok(self.point_data_[index]),
            VD::SourceCategory::SegmentStart => {
                Ok(self.segment_data_[index - self.point_data_.len()].start)
            }
            VD::SourceCategory::Segment | VD::SourceCategory::SegmentEnd => {
                Ok(self.segment_data_[index - self.point_data_.len()].end)
            }
        }
    }
/// Retrieves a point from the voronoi input in the order it was presented to
/// the voronoi builder
Retrieves a point from the voronoi input in the order it was presented to
the voronoi builder
Retrieves a point from the voronoi input in the order it was presented to the voronoi builder
fn retrieve_point(&self, cell_id: VD::CellIndex) -> Result<geometry::Point<I>, BvError> {
        let (index, cat) = self.diagram.get_cell(cell_id)?.get().source_index_2();
        match cat {
            VD::SourceCategory::SinglePoint => Ok(self.point_data_[index]),
            VD::SourceCategory::SegmentStart => {
                Ok(self.segment_data_[index - self.point_data_.len()].start)
            }
            VD::SourceCategory::Segment | VD::SourceCategory::SegmentEnd => {
                Ok(self.segment_data_[index - self.point_data_.len()].end)
            }
        }
    }
fn retrieve_point ( & self , cell_id : VD :: CellIndex ) -> Result < geometry :: Point < I > , BvError > { let ( index , cat ) = self . diagram . get_cell ( cell_id ) ? . get ( ) . source_index_2 ( ) ; match cat { VD :: SourceCategory :: SinglePoint => Ok ( self . point_data_ [ index ] ) , VD :: SourceCategory :: SegmentStart => { Ok ( self . segment_data_ [ index - self . point_data_ . len ( ) ] . start ) } VD :: SourceCategory :: Segment | VD :: SourceCategory :: SegmentEnd => { Ok ( self . segment_data_ [ index - self . point_data_ . len ( ) ] . end ) } } }
Retrieves a point from the voronoi input in the order it was presented to
the voronoi builder
Retrieves a point from the voronoi input in the order it was presented to the voronoi builder
&self
cell_id
VD::CellIndex