Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Stoeoef/spade
/ functions
Functions
805 in github.com/Stoeoef/spade
⨍
Functions
805
◇
Types & classes
106
↓ 1,084 callers
Function
new
()
src/delaunay_core/dcel_operations.rs:998
↓ 334 callers
Method
insert
Updates the hull after the insertion of a vertex. This method should be called after a vertex `v` has been inserted into the outer face of the triang
src/delaunay_core/bulk_load.rs:918
↓ 205 callers
Method
fix
Converts this dynamic handle to its fixed variant. See also the [handles module](crate::handles)
src/delaunay_core/handles/handle_impls.rs:166
↓ 123 callers
Method
rev
(self)
src/delaunay_core/handles/handle_impls.rs:96
↓ 97 callers
Method
add
(&mut self, item: T)
examples/svg_renderer/quicksketch/mod.rs:672
↓ 93 callers
Method
half_edge_mut
(&mut self, handle: FixedDirectedEdgeHandle)
src/delaunay_core/dcel.rs:233
↓ 87 callers
Method
position
( &self, dcel: &Dcel<V, DE, UE, F>, )
src/delaunay_core/triangulation_ext.rs:40
↓ 79 callers
Method
index
Returns the internal index of this element. Indices of the same handle type are guaranteed to be unique (e.g. different vertices will have different
src/delaunay_core/handles/handle_defs.rs:87
↓ 70 callers
Method
as_undirected
(self)
src/delaunay_core/handles/handle_impls.rs:105
↓ 68 callers
Method
to
Returns the edge's destination vertex.
src/delaunay_core/handles/handle_impls.rs:225
↓ 64 callers
Method
vertex
(&self, handle: FixedVertexHandle)
src/delaunay_core/dcel.rs:185
↓ 61 callers
Function
convert_point
(point: spade::Point2<f64>)
examples/svg_renderer/main.rs:123
↓ 60 callers
Method
directed_edge
( &self, handle: FixedDirectedEdgeHandle, )
src/delaunay_core/dcel.rs:195
↓ 57 callers
Method
next
Returns the oriented next edge. The oriented next edge shares the same face as this edge. When traversing the face's edges in oriented order, this ed
src/delaunay_core/handles/handle_impls.rs:254
↓ 57 callers
Method
position
(mut self, position: Point)
examples/svg_renderer/quicksketch/mod.rs:279
↓ 53 callers
Function
bulk_load
Implements a circle-sweep bulk loading algorithm for efficient initialization of Delaunay triangulations. The algorithm is motivated by: A faster ci
src/delaunay_core/bulk_load.rs:94
↓ 50 callers
Method
sanity_check
(&self)
src/delaunay_core/triangulation_ext.rs:891
↓ 45 callers
Method
s_mut
(&mut self)
src/cdt.rs:206
↓ 43 callers
Method
from
Returns the edge's origin vertex.
src/delaunay_core/handles/handle_impls.rs:219
↓ 42 callers
Method
cdt_sanity_check
(&self)
src/cdt.rs:731
↓ 41 callers
Method
face
( &self, handle: FixedHandleImpl<FaceTag, InnerOuter>, )
src/delaunay_core/dcel.rs:259
↓ 40 callers
Method
prev
Returns the oriented previous edge. The oriented previous edge shares the same face as this edge. When traversing the face's edges in oriented order,
src/delaunay_core/handles/handle_impls.rs:266
↓ 39 callers
Method
add_constraint
Adds a constraint edge between to vertices. Returns `true` if at least one constraint edge was added. Note that the given constraint might be split i
src/cdt.rs:558
↓ 39 callers
Method
font_size
(mut self, font_size: f64)
examples/svg_renderer/quicksketch/mod.rs:304
↓ 37 callers
Function
save_svg
(doc: Sketch, name: &'static str)
examples/svg_renderer/main.rs:15
↓ 35 callers
Method
s
(&self)
src/cdt.rs:202
↓ 34 callers
Method
num_vertices
(&self)
src/delaunay_core/dcel.rs:169
↓ 33 callers
Function
check
(from: Point2<f64>, to: Point2<f64>, expected: bool)
src/flood_fill_iterator.rs:787
↓ 33 callers
Method
sanity_check
(&self)
src/delaunay_core/dcel.rs:385
↓ 32 callers
Function
random_points_with_seed
(size: usize, seed: &[u8; 32])
src/test_utilities.rs:25
↓ 32 callers
Method
stroke_color
(mut self, color: SketchColor)
examples/svg_renderer/quicksketch/mod.rs:212
↓ 32 callers
Method
to_f64
(self)
src/point.rs:53
↓ 30 callers
Method
vertices
(&self)
src/delaunay_core/dcel.rs:331
↓ 29 callers
Function
append_unconnected_vertex
( dcel: &mut Dcel<V, DE, UE, F>, vertex: V, )
src/delaunay_core/dcel_operations.rs:826
↓ 28 callers
Method
line_to
(mut self, point: Point)
examples/svg_renderer/quicksketch/mod.rs:367
↓ 27 callers
Method
dy
(mut self, dy: f64)
examples/svg_renderer/quicksketch/mod.rs:314
↓ 25 callers
Function
check
( delaunay: &Triangulation, from: Point2<f64>, to: Point2<f64>, mut expected:
src/intersection_iterator.rs:538
↓ 25 callers
Method
positions
Returns the start and end position of this edge. The first returned position is `self.from().position()`, the second is `self.to().position()`.
src/delaunay_core/handles/handle_impls.rs:339
↓ 25 callers
Method
stroke_width
(mut self, width: f64)
examples/svg_renderer/quicksketch/mod.rs:207
↓ 24 callers
Method
get_edge_from_neighbors
( &self, from: FixedVertexHandle, to: FixedVertexHandle, )
src/delaunay_core/dcel.rs:301
↓ 24 callers
Method
half_edge
(&self, handle: FixedDirectedEdgeHandle)
src/delaunay_core/dcel.rs:228
↓ 24 callers
Method
remove
Removes a vertex from the triangulation. This operation runs in O(n²), where n is the degree of the removed vertex. # Handle invalidation This metho
src/cdt.rs:252
↓ 23 callers
Function
fuzz_test
(vertices: Vec<Point2<f64>>)
src/delaunay_core/bulk_load_fuzz_tests.rs:5
↓ 23 callers
Method
mul
(&self, factor: S)
src/point.rs:57
↓ 22 callers
Method
clone
(&self)
src/intersection_iterator.rs:127
↓ 21 callers
Method
as_inner
Converts this face handle to an inner face. Returns `None` if this handle refers to the single outer face.
src/delaunay_core/handles/handle_impls.rs:195
↓ 21 callers
Function
convert_triangulation
(triangulation: &T, options: &ConversionOptions)
examples/svg_renderer/scenario.rs:104
↓ 21 callers
Method
side_query
Identifies on which side of this edge a point lies.
src/delaunay_core/handles/handle_impls.rs:359
↓ 20 callers
Function
bulk_load_cdt
Returns the [`ConstrainedDelaunayTriangulation`]. Panics if it encounters any conflicting edges. See [try_bulk_load_cdt] for a non-panicking version.
src/delaunay_core/bulk_load.rs:189
↓ 19 callers
Method
add
(&self, other: Self)
src/point.rs:64
↓ 19 callers
Method
as_directed
(&self)
src/delaunay_core/handles/handle_impls.rs:449
↓ 19 callers
Method
fill
(mut self, fill: impl Into<SketchFill>)
examples/svg_renderer/quicksketch/mod.rs:202
↓ 19 callers
Method
is_on_line
(self)
src/delaunay_core/line_side_info.rs:57
↓ 19 callers
Method
sub
(&self, other: Self)
src/point.rs:75
↓ 18 callers
Method
out_edges
A possible iteration order of `v.out_edges()` Note*: The returned iterator implements `DoubleEndedIterator`, allowing traversal in clockwise order.
src/delaunay_core/handles/handle_impls.rs:747
↓ 18 callers
Method
set_width
(&mut self, width: u32)
examples/svg_renderer/quicksketch/mod.rs:642
↓ 17 callers
Method
is_constraint_edge
Returns `true` if this edge is a constraint edge.
src/cdt.rs:43
↓ 17 callers
Method
position
Returns the position of this vertex.
src/delaunay_core/handles/handle_impls.rs:714
↓ 17 callers
Function
side_query
(p1: Point2<S>, p2: Point2<S>, query_point: Point2<S>)
src/delaunay_core/math.rs:298
↓ 16 callers
Method
adjust_inner_outer
( &self, )
src/delaunay_core/handles/handle_defs.rs:91
↓ 16 callers
Method
move_to
(mut self, point: Point)
examples/svg_renderer/quicksketch/mod.rs:357
↓ 15 callers
Method
add_constraint_edges
Creates a several constraint edges by taking and connecting vertices from an iterator. Every two sequential vertices in the input iterator will be co
src/cdt.rs:505
↓ 15 callers
Method
from
(point: Point2<f64>)
examples/svg_renderer/scenario.rs:14
↓ 15 callers
Method
length2
(&self)
src/point.rs:71
↓ 14 callers
Method
create_adjacent_text
(&self, text: S)
examples/svg_renderer/quicksketch/mod.rs:491
↓ 14 callers
Method
horizontal_alignment
(mut self, horizontal_alignment: HorizontalAlignment)
examples/svg_renderer/quicksketch/mod.rs:299
↓ 14 callers
Method
is_outer_edge
Returns `true` if this edge is adjacent to the outer face.
src/delaunay_core/handles/handle_impls.rs:314
↓ 14 callers
Method
locate
Returns information about the location of a point in a triangulation. # Panics Panics if the target point has any `NAN` coordinate.
src/triangulation.rs:423
↓ 14 callers
Method
undirected_edge_data_mut
(&mut self, handle: FixedUndirectedEdgeHandle)
src/delaunay_core/dcel.rs:255
↓ 13 callers
Method
circumcenter
Returns the face's circumcenter. The circumcenter is the center of the circumcircle.
src/delaunay_core/handles/handle_impls.rs:670
↓ 13 callers
Method
clone
(&self)
src/delaunay_core/hint_generator.rs:86
↓ 13 callers
Method
is_on_left_side
Returns `true` if a point lies on the left side of a line. For left-handed coordinate systems, this method returns if a point lies on the right side
src/delaunay_core/line_side_info.rs:29
↓ 13 callers
Method
natural_neighbor
Allows using natural neighbor interpolation on this triangulation. Refer to the documentation of [NaturalNeighbor] for more information.
src/delaunay_triangulation.rs:400
↓ 13 callers
Function
round
(value: f64)
examples/svg_renderer/quicksketch/convert.rs:47
↓ 12 callers
Method
clear
(&mut self)
src/delaunay_core/dcel.rs:122
↓ 12 callers
Method
data
Returns the wrapped undirected edge data type.
src/cdt.rs:58
↓ 12 callers
Function
project_point
(p1: Point2<S>, p2: Point2<S>, query_point: Point2<S>)
src/delaunay_core/math.rs:247
↓ 12 callers
Method
refine
(&mut self, parameters: RefinementParameters<V::Scalar>)
src/delaunay_core/refinement.rs:463
↓ 12 callers
Method
undirected_edges
(&self)
src/delaunay_core/dcel.rs:327
↓ 11 callers
Method
as_voronoi_edge
Converts this edge into its dual voronoi edge. See also [as_delaunay_edge](DirectedVoronoiEdge::as_delaunay_edge).
src/delaunay_core/handles/handle_impls.rs:326
↓ 10 callers
Method
adjacent_edges
The edges are returned in counterclockwise order.
src/delaunay_core/handles/handle_impls.rs:595
↓ 10 callers
Method
data
Returns a reference to the data associated with this directed edge. Use [Triangulation::directed_edge_data_mut](crate::Triangulation::directed_edge_d
src/delaunay_core/handles/handle_impls.rs:297
↓ 10 callers
Function
default_triangle
()
src/delaunay_core/dcel_operations.rs:1331
↓ 10 callers
Method
distance_2
(&self, other: Self)
src/point.rs:49
↓ 10 callers
Method
inner_faces
(&self)
src/delaunay_core/dcel.rs:343
↓ 10 callers
Method
num_undirected_edges
(&self)
src/delaunay_core/dcel.rs:177
↓ 10 callers
Method
opposite_position
(&self)
src/delaunay_core/handles/handle_impls.rs:348
↓ 9 callers
Method
add_constraint_and_split
# Code example ``` use spade::{ConstrainedDelaunayTriangulation, Point2, Triangulation}; # fn try_main() -> Result<(), spade::InsertionError> { use s
src/cdt.rs:1227
↓ 9 callers
Method
add_constraint_edge
Insert two points and creates a constraint between them. Returns `true` if at least one constraint edge was added. # Panics Panics if the new const
src/cdt.rs:537
↓ 9 callers
Method
add_with_layer
( &mut self, item: T, layer: SketchLayer, )
examples/svg_renderer/quicksketch/mod.rs:676
↓ 9 callers
Function
big_triangulation
()
examples/svg_renderer/scenario_list.rs:27
↓ 9 callers
Method
data_mut
Returns the wrapped undirected edge data type.
src/cdt.rs:63
↓ 9 callers
Method
hint_generator
(&self)
src/cdt.rs:225
↓ 9 callers
Method
index
Returns the internal index of this element. Indices of the same handle type are guaranteed to be unique (e.g. different vertices will have different
src/delaunay_core/handles/handle_impls.rs:180
↓ 9 callers
Method
num_faces
(&self)
src/delaunay_core/dcel.rs:181
↓ 9 callers
Method
partial_cmp
(&self, other: &Self)
src/delaunay_core/handles/handle_impls.rs:155
↓ 9 callers
Method
position
(&self)
src/delaunay_core/interpolation.rs:840
↓ 9 callers
Method
shift_to
(mut self, shift_to: f64)
examples/svg_renderer/quicksketch/mod.rs:467
↓ 9 callers
Function
test_rectangle_iterator
(d: &impl Triangulation<Vertex = Point2<f64>>)
src/flood_fill_iterator.rs:650
↓ 9 callers
Method
with_arrow_end
(mut self, arrow_type: ArrowType)
examples/svg_renderer/quicksketch/mod.rs:420
next →
1–100 of 805, ranked by callers