Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Notgnoshi/generative
/ functions
Functions
516 in github.com/Notgnoshi/generative
⨍
Functions
516
◇
Types & classes
94
↓ 1 callers
Function
pairwise
Iterate over the given iterable in pairs. Example: s -> (s0,s1), (s1,s2), (s2, s3), ...
tools/render.py:38
↓ 1 callers
Function
params_from_letters
(letters: &str)
tools/attractor.rs:154
↓ 1 callers
Function
parse_args
()
tools/random-production-rules.py:27
↓ 1 callers
Function
parse_args
()
tools/project.py:29
↓ 1 callers
Function
parse_args
()
tools/format.py:32
↓ 1 callers
Function
parse_args
()
tools/wkt2svg.py:32
↓ 1 callers
Function
parse_args
()
tools/interpret-lstring.py:37
↓ 1 callers
Function
parse_args
()
tools/render.py:49
↓ 1 callers
Function
parse_args
()
tools/parse-production-rules.py:39
↓ 1 callers
Function
parse_rules
( rules: List[str], long_tokens )
tools/parse-production-rules.py:105
↓ 1 callers
Function
project
Project the given geometries to 2D. :param kind: The type of projection to use. Can be one of 'I', 'pca', 'svd', 'isometric', 'auto', 'xy', 'xz',
generative/projection.py:13
↓ 1 callers
Function
quad_grid
(width: usize, height: usize, size_x: f64, size_y: f64)
tools/grid.rs:253
↓ 1 callers
Function
radial_grid
( num_spokes: usize, num_rings: usize, ring_separation: f64, fill_strategy: FillStrategy, )
tools/grid.rs:524
↓ 1 callers
Function
ragged_grid
(width: usize, height: usize, size_x: f64, size_y: f64)
tools/grid.rs:311
↓ 1 callers
Function
random_traversal
( length: usize, remove_after_traverse: bool, graph: &mut GeometryGraph<D>, rng: &mut StdRng,
tools/traverse.rs:71
↓ 1 callers
Function
read_raw_edge
TODO: Read edge weights
generative/io/tgf.rs:121
↓ 1 callers
Function
read_raw_node
(line: String)
generative/io/tgf.rs:91
↓ 1 callers
Function
scale_coord_range
( bounds: &Rect, x_dst: Option<&[f64; 2]>, y_dst: Option<&[f64; 2]>, coord: Coord, )
tools/transform.rs:245
↓ 1 callers
Method
set_nodes
generative/include/generative/noding/geometry-graph.h:67
↓ 1 callers
Function
simulate
( geometries: G, field: &'v VectorField, timestep: f64, num_timesteps: usize, random_times
tools/streamline.rs:261
↓ 1 callers
Function
simulate_geom_vertices
( mut geometry: Geometry, vector_field: &VectorField, timestep: f64, num_timesteps: usize,
tools/streamline.rs:385
↓ 1 callers
Function
simulate_geometry
( geometry: Geometry, field: &VectorField, timestep: f64, num_timesteps: usize, streamline
tools/streamline.rs:295
↓ 1 callers
Function
simulate_rigid_geometry
( mut geometry: Geometry, vector_field: &VectorField, timestep: f64, num_timesteps: usize,
tools/streamline.rs:358
↓ 1 callers
Function
snap_coord
(to_snap: Coord, index: &mut GeomKdTree, tolerance: f64)
generative/snap.rs:83
↓ 1 callers
Function
snap_geom
(geom: Geometry, index: &mut GeomKdTree, strategy: &SnappingStrategy)
generative/snap.rs:71
↓ 1 callers
Function
snap_geom_impl
(mut geom: Geometry, index: &mut GeomKdTree, tolerance: f64)
generative/snap.rs:78
↓ 1 callers
Function
snap_graph_closest_point
( mut graph: GeometryGraph<D>, index: &mut GraphKdTree, tolerance: f64, )
generative/snap.rs:228
↓ 1 callers
Function
snap_graph_grid
(mut graph: GeometryGraph<D>, tolerance: f64)
generative/snap.rs:330
↓ 1 callers
Function
snap_graph_node
Snap the given node to the closest other node within the given tolerance Returns the NodeIndex that was snapped to, if the given node was snapped.
generative/snap.rs:256
↓ 1 callers
Method
start_edges
generative/include/generative/io/graph-writer.h:44
↓ 1 callers
Method
start_nodes
generative/include/generative/io/graph-writer.h:40
↓ 1 callers
Function
to_ffi_graph
( graph: &crate::graph::GeometryGraph<Direction>, )
generative/cxxbridge/mod.rs:12
↓ 1 callers
Function
to_svg
( geometry: GeometryAndStyle, transform: &Option<AffineTransform>, document: Document, options
tools/wkt2svg.rs:315
↓ 1 callers
Function
tri_grid
(width: usize, height: usize, size_x: f64, size_y: f64)
tools/grid.rs:155
↓ 1 callers
Function
tri_i2x
(i: usize, size_x: f64, odd: bool)
tools/grid.rs:143
↓ 1 callers
Function
tri_j2y
(j: usize, triangle_height: f64)
tools/grid.rs:151
↓ 1 callers
Method
triangles
(&self)
generative/triangulation.rs:52
↓ 1 callers
Method
write_image
(&mut self, accumulated: Vec<Coord<f64>>)
generative/attractor.rs:122
↓ 1 callers
Function
write_line
(writer: W, x1: i64, y1: i64, x2: i64, y2: i64)
tools/bitwise.rs:91
↓ 1 callers
Function
write_point
(writer: W, x1: i64, y1: i64)
tools/bitwise.rs:103
↓ 1 callers
Function
write_wkt_graph
( writer: W, graph: &GeometryGraph<Direction>, )
generative/io/tgf.rs:76
Method
GeometryFlattener
generative/geometry-flattener.cpp:33
Method
GeometryGraph
generative/noding/geometry-graph.cpp:21
Method
GeometryGraph
@brief Create an empty graph. @see GeometryGraph::build() to generate the graph from a geometry. @see GeometryGraph::set_nodes() and GeometryGraph::ad
generative/include/generative/noding/geometry-graph.h:51
Method
GeometryGraphShim
generative/cxxbridge/geometry_graph.hpp:14
Method
GeometryIterator
generative/io/wkt-stream-reader.cpp:14
Method
GeometryNoder
generative/noding/geometry-noder.cpp:93
Method
GeometryNoder
generative/include/generative/noding/geometry-noder.h:34
Method
GraphReader
generative/include/generative/io/graph-reader.h:12
Method
GraphWriter
generative/include/generative/io/graph-writer.h:12
Method
Node
generative/include/generative/noding/geometry-graph.h:29
Method
RecursiveGeometryIterator
generative/geometry-flattener.cpp:37
Method
SegmentStringExtractor
generative/noding/geometry-noder.cpp:20
Function
TEST
tests/geometry-noder-tests.cpp:14
Function
TEST
tests/geometry-flattener-tests.cpp:11
Function
TEST
tests/tgf-graph-reader-tests.cpp:14
Function
TEST
tests/geometry-graph-tests.cpp:12
Function
TEST
tests/wkt-reader-tests.cpp:14
Function
TEST
tests/polygonizer-tests.cpp:16
Method
TGFGraphReader
generative/include/generative/io/tgf-graph-reader.h:11
Method
TGFGraphWriter
generative/include/generative/io/tgf-graph-writer.h:8
Method
WKTStreamReader
generative/include/generative/io/wkt-stream-reader.h:50
Method
__init__
Initialize an L-System interpreter with the given commandset and turtle config.
generative/lsystem/interpreter.py:34
Method
__init__
Initialize the turtle with the given position and rotation. Use a traditional RHS coordinate system with Z pointing up. Transformatio
generative/lsystem/turtle.py:15
Method
__init__
Initialize a Lindenmayer-System grammar parser with the given rules. :param rules: A set of production rules. A mapping of token -> replaceme
generative/lsystem/grammar.py:78
Method
__init__
Create a rule parser. Parsing rule after rule will construct the RuleParser.rule and RuleParser.ignore members. :param long_tokens:
generative/lsystem/production.py:37
Function
better_repr
(self)
tests/test_interpreter.py:11
Method
collapse
@brief Consume the input stream, and collapse into a std::vector of geometries.
generative/include/generative/io/wkt-stream-reader.h:65
Function
dynamic_unique_ptr_cast
generative/io/tgf-graph-reader.cpp:40
Method
end_nodes
generative/io/tgf-graph-writer.cpp:9
Method
extract_segment_strings
generative/noding/geometry-noder.cpp:152
Method
filter_ro
generative/noding/geometry-noder.cpp:24
Function
fit_to_range
()
tests/test_transform.rs:134
Method
fmt
(&self, f: &mut std::fmt::Formatter)
tools/bitwise.rs:125
Method
fmt
(&self, f: &mut std::fmt::Formatter)
tools/geom2graph.rs:20
Method
fmt
(&self, f: &mut std::fmt::Formatter)
tools/snap.rs:21
Method
fmt
(&self, f: &mut std::fmt::Formatter)
tools/grid.rs:26
Method
fmt
(&self, f: &mut std::fmt::Formatter)
tools/streamline.rs:27
Method
fmt
(&self, f: &mut std::fmt::Formatter)
generative/attractor.rs:18
Method
fmt
(&self, f: &mut std::fmt::Formatter)
generative/io/tgf.rs:24
Method
from
(options: &CmdlineOptions)
tools/wkt2svg.rs:79
Method
from
(ffi_graph: &crate::cxxbridge::GeometryGraphShim)
generative/graph.rs:14
Method
from
(c: geo::Coord)
generative/cxxbridge/coord_ffi.rs:38
Method
from
(x: Geometry<T>)
generative/io/wkt.rs:83
Method
from_linestring
(l: &geo::LineString)
generative/cxxbridge/geometry_collection.rs:79
Function
from_polar
(coord: Coord)
tools/transform.rs:226
Method
from_poly
(p: &geo::Polygon)
generative/cxxbridge/geometry_collection.rs:108
Method
generate_random_seed_if_not_specified
Generate a random seed, or pass one through if specified.
generative/dla.rs:248
Function
implicitly_open
(geometry: Geometry)
generative/flatten/points.rs:14
Function
implicitly_open_ref
(geometry: &Geometry)
generative/flatten/points.rs:38
Function
init_test_logging
()
generative/lib.rs:18
Function
insert_collection
( dwg: svgwrite.Drawing, geoms: shapely.geometry.base.BaseMultipartGeometry, group: svgwrite.conta
tools/wkt2svg.py:103
Function
insert_linestring
( dwg: svgwrite.Drawing, geom: shapely.geometry.LineString, group: svgwrite.container.Group = None )
tools/wkt2svg.py:81
Function
insert_point
( dwg: svgwrite.Drawing, geom: shapely.geometry.Point, group: svgwrite.container.Group = None )
tools/wkt2svg.py:70
Function
insert_polygon
( dwg: svgwrite.Drawing, geom: shapely.geometry.Polygon, group: svgwrite.container.Group = None )
tools/wkt2svg.py:92
Method
length
(v: &[f64; 2])
generative/dla.rs:232
Method
lerp
(a: &[f64; 2], b: &[f64; 2], d: f64)
generative/dla.rs:240
Function
main
()
build.rs:2
Function
main
()
tools/transform.rs:277
Function
main
()
tools/attractor.rs:216
← previous
next →
201–300 of 516, ranked by callers