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
↓ 76 callers
Function
from_wkt
generative/io/wkt.cpp:13
↓ 64 callers
Function
tokenize
(s: str)
tests/test_grammar.py:12
↓ 34 callers
Method
captured_output
(&mut self)
tests/mod.rs:26
↓ 34 callers
Function
tool
Get a command to run the given tool with Cargo
tests/mod.rs:38
↓ 26 callers
Method
_parse
Parse the given rule into textual tokens.
generative/lsystem/production.py:104
↓ 26 callers
Method
cend
generative/include/generative/geometry-flattener.h:45
↓ 25 callers
Method
end
generative/include/generative/geometry-flattener.h:48
↓ 25 callers
Function
flatten
Convert the given geometries to a sequence of tagged points.
generative/flatten/flatten.py:59
↓ 25 callers
Method
rewrite
Apply the production rules to the given string to rewrite it.
generative/lsystem/grammar.py:154
↓ 21 callers
Function
read_wkt_geometries
Return an iterator to the WKT geometries passed in through the given BufReader Expects one geometry per line (LF or CRLF). Parsing any given line end
generative/io/wkt.rs:228
↓ 20 callers
Method
read
generative/io/tgf-graph-reader.cpp:16
↓ 20 callers
Function
write_geometries
(writer: W, geometries: G)
generative/io/wkt.rs:136
↓ 16 callers
Method
begin
generative/include/generative/geometry-flattener.h:47
↓ 16 callers
Function
deserialize_flat
r"""Deserialize a flattened sequence of points. Sample Input/Output: (0, 0)\n POINT(0 0) (0, 0)\tLINESTRING_BEGIN\n
generative/io/wkt.py:37
↓ 15 callers
Method
get_edge_pairs
generative/noding/geometry-graph.cpp:51
↓ 15 callers
Function
get_output_writer
(output: &Option<PathBuf>)
generative/io/stdio.rs:5
↓ 13 callers
Method
add_edge
generative/noding/geometry-graph.cpp:45
↓ 13 callers
Method
add_node
generative/noding/geometry-graph.cpp:33
↓ 13 callers
Function
flatten_nested_geometries
Compare this against the C++ GeometryFlattener and weep for joy.
generative/flatten/geometries.rs:56
↓ 13 callers
Function
unflatten
Convert the sequence of tagged points back into a sequence of geometries.
generative/flatten/flatten.py:133
↓ 12 callers
Method
forward
Move the turtle forward by the given stepsize.
generative/lsystem/turtle.py:40
↓ 12 callers
Function
get_input_reader
(input: &Option<PathBuf>)
generative/io/stdio.rs:15
↓ 12 callers
Method
interpret
Interpret the given tokens as 3D Turtle commands.
generative/lsystem/interpreter.py:64
↓ 12 callers
Method
next
(&mut self)
generative/io/wkt.rs:164
↓ 12 callers
Function
serialize_flat
r"""Serialize the given flattened geometries in a custom format. Sample Input/Output: POINT(0 0): (0, 0)\n LINESTRIN
generative/io/wkt.py:149
↓ 12 callers
Method
tokenize
Tokenize the given input using the configured commandset.
generative/lsystem/interpreter.py:47
↓ 10 callers
Function
flatten_single
Recursively convert a single geometry to a sequence of tagged points.
generative/flatten/flatten.py:65
↓ 10 callers
Function
read_geometries
(reader: R)
generative/io/wkt.rs:129
↓ 9 callers
Method
cbegin
generative/include/generative/geometry-flattener.h:44
↓ 9 callers
Function
node
(geoms: G)
generative/noding/mod.rs:6
↓ 8 callers
Function
read_wkt_geometries_and_styles
(reader: R)
generative/io/wkt.rs:253
↓ 8 callers
Function
wrap_tagged
Wrap an already tagged point sequence in another layer of _BEGIN and _END tags.
generative/flatten/flatten.py:116
↓ 7 callers
Function
deserialize_geometries
(buffer: io.TextIOWrapper, fmt="wkt")
generative/io/wkt.py:123
↓ 7 callers
Method
write
(&self, writer: &mut W)
tools/streamline.rs:225
↓ 7 callers
Method
write
@brief Write the given graph to the provided ostream.
generative/include/generative/io/graph-writer.h:20
↓ 7 callers
Function
write_graph
( mut writer: W, graph: &GeometryGraph<Direction>, format: &GraphFormat, )
generative/io/tgf.rs:33
↓ 6 callers
Function
flatten_geometries_into_points
Flatten the given geometries into a point cloud NOTE: Closed rings are implicitly opened.
generative/flatten/points.rs:67
↓ 6 callers
Method
lines
(&self)
generative/triangulation.rs:57
↓ 6 callers
Method
parse
Parse the given rule into rhs -> production mappings. As a bit of a terrible design, ignore token lists will be parsed and added to R
generative/lsystem/production.py:114
↓ 6 callers
Function
snap_geoms
( geoms: impl Iterator<Item = Geometry>, strategy: SnappingStrategy, )
generative/snap.rs:28
↓ 6 callers
Function
snap_graph
(graph: GeometryGraph<D>, strategy: SnappingStrategy)
generative/snap.rs:197
↓ 5 callers
Function
flatten_geometries_into_points_ref
A variant of [`flatten_geometries_into_points`] that doesn't consume the geometries NOTE: Closed rings are implicitly opened.
generative/flatten/points.rs:80
↓ 5 callers
Method
graph
(&self)
generative/triangulation.rs:130
↓ 5 callers
Method
pitch
Pitch the turtle around its local Y axis.
generative/lsystem/turtle.py:55
↓ 5 callers
Function
snap_coord_grid
(coord: Coord, tolerance: f64)
generative/snap.rs:105
↓ 5 callers
Function
triangulate
Calculate the Delaunay triangulation of the given point cloud
generative/triangulation.rs:7
↓ 5 callers
Function
unzip
(iterable)
generative/projection.py:50
↓ 5 callers
Function
wkt_inner
(prefix: &'a str, s: &'a str)
generative/io/wkt.rs:19
↓ 5 callers
Function
write_wkt_geometries
Write the given geometries with the given Writer in WKT format Each geometry will be written on its own line.
generative/io/wkt.rs:241
↓ 5 callers
Method
yaw
Yaw the turtle around its local Z axis.
generative/lsystem/turtle.py:47
↓ 4 callers
Function
__unwrap_first_tag
Unwrap the first and any remaining tags.
generative/flatten/flatten.py:215
↓ 4 callers
Method
_flush_active_line
(self)
generative/lsystem/interpreter.py:76
↓ 4 callers
Function
_zeropad_3d
(points: Iterable[Tuple[float]])
generative/projection.py:121
↓ 4 callers
Method
build
generative/noding/geometry-graph.cpp:107
↓ 4 callers
Method
coord
generative/include/generative/noding/geometry-graph.h:34
↓ 4 callers
Method
get_edges
generative/noding/geometry-graph.cpp:71
↓ 4 callers
Function
get_tgf
(graph: &GeometryGraph<D>)
generative/snap.rs:382
↓ 4 callers
Function
implicitly_open_linestring
(ls: LineString)
generative/flatten/points.rs:5
↓ 4 callers
Method
pick_rule
Pick the right rule based off the probability values or the parametric condition.
generative/lsystem/grammar.py:95
↓ 4 callers
Function
polygonize
( graph: &GeometryGraph<Direction>, )
generative/noding/mod.rs:45
↓ 3 callers
Method
apply_rules
Apply the production rules to the given token with the specified context. Note that the left and right context are optional to facilitate the
generative/lsystem/grammar.py:107
↓ 3 callers
Function
build_transform
(args: &CmdlineOptions, center: Coord)
tools/transform.rs:110
↓ 3 callers
Method
edges
generative/cxxbridge/geometry_graph.hpp:40
↓ 3 callers
Function
filter_duplicate_ls
(mut ls: LineString, closed: bool)
generative/snap.rs:183
↓ 3 callers
Function
from_polar
(r: f64, theta: f64)
tools/grid.rs:480
↓ 3 callers
Method
generate_random_coord
TODO: ndarray::Array1
generative/dla.rs:228
↓ 3 callers
Function
geoms_coordwise
( geometries: impl Iterator<Item = Geometry>, transform: impl Fn(Coord) -> Coord + Copy, )
tools/transform.rs:267
↓ 3 callers
Method
map_coords_in_place_mut
(&mut self, mut func: impl FnMut(Coord<T>) -> Coord<T>)
generative/geometry_mut_map.rs:13
↓ 3 callers
Function
node
generative/cxxbridge/noder.hpp:17
↓ 3 callers
Method
nodes
generative/cxxbridge/geometry_graph.hpp:25
↓ 3 callers
Function
read_tgf_graph
(reader: R)
generative/io/tgf.rs:153
↓ 3 callers
Method
roll
Roll the turtle around its local X axis. Just a roll is enough to affect direction, since it's a rotation around the longitudinal axi
generative/lsystem/turtle.py:60
↓ 3 callers
Function
serialize_geometries
(geometries: Iterable[Geometry], buffer: io.TextIOWrapper, fmt="wkt")
generative/io/wkt.py:209
↓ 3 callers
Function
snap_f64_grid
(value: f64, tolerance: f64)
generative/snap.rs:112
↓ 3 callers
Function
tokenize
(s: str)
tests/test_production.py:172
↓ 3 callers
Function
wrap_bare
Wrap the given coordinate seqence in the given tag type. You pass in the _BEGIN tag, with the assumption that the _END tag is _BEGIN+1.
generative/flatten/flatten.py:105
↓ 3 callers
Function
write_tgf_graph
( writer: &mut W, graph: &GeometryGraph<Direction>, )
generative/io/tgf.rs:48
↓ 2 callers
Function
_rot_x
X axis rotation matrix.
generative/projection.py:79
↓ 2 callers
Function
add_cs
(coords, segments)
tools/render.py:91
↓ 2 callers
Function
add_ring_to_path_data
(mut data: element::path::Data, ring: &LineString)
tools/wkt2svg.rs:224
↓ 2 callers
Function
bias
(distribution, biases, temperature)
tools/random-production-rules.py:185
↓ 2 callers
Function
bounding_box
(geometries: &[Geometry])
tools/transform.rs:156
↓ 2 callers
Method
digraph
(&self)
generative/triangulation.rs:78
↓ 2 callers
Function
ensure_3d
(points)
tools/render.py:84
↓ 2 callers
Function
filter_duplicate_vertices
(geom: Geometry)
generative/snap.rs:133
↓ 2 callers
Method
generate_random
(&mut self)
generative/dla.rs:222
↓ 2 callers
Function
generate_random_seed_if_not_specified
(seed: u64)
tools/traverse.rs:62
↓ 2 callers
Function
geometry_to_outer_iterator
(geometry: Option<Geometry>)
generative/flatten/geometries.rs:34
↓ 2 callers
Function
insert_geometry
( dwg: svgwrite.Drawing, geom: shapely.geometry.base.BaseGeometry, group: svgwrite.container.Group
tools/wkt2svg.py:131
↓ 2 callers
Function
is_multi_geometry
generative/geometry-flattener.cpp:8
↓ 2 callers
Method
loop
Apply the productions rules n times to the given axiom, and return the result.
generative/lsystem/grammar.py:179
↓ 2 callers
Function
quad_i2x
(i: usize, delta_x: f64, min_x: f64)
tools/grid.rs:245
↓ 2 callers
Function
quad_j2y
(j: usize, delta_y: f64, min_y: f64)
tools/grid.rs:249
↓ 2 callers
Method
run
Add the specified number of particles to the model.
generative/dla.rs:100
↓ 2 callers
Function
scale_range
(src: &[f64; 2], dst: &[f64; 2], v: f64)
tools/transform.rs:241
↓ 2 callers
Function
simulate_coordinate
( original: Coord, field: &VectorField, timestep: f64, num_timesteps: usize, record_stream
tools/streamline.rs:320
↓ 2 callers
Function
snap_geom_grid
(mut geom: Geometry, tolerance: f64)
generative/snap.rs:128
↓ 2 callers
Function
snap_graph_nodes
Snap `snap_from` to `snap_to`, and update all of `snap_from`s adjacencies
generative/snap.rs:303
↓ 2 callers
Method
triangle_indices
(&self)
generative/triangulation.rs:31
↓ 2 callers
Method
triangle_points
(&self)
generative/triangulation.rs:38
next →
1–100 of 516, ranked by callers