MCPcopy Create free account

hub / github.com/Notgnoshi/generative / functions

Functions516 in github.com/Notgnoshi/generative

↓ 76 callersFunctionfrom_wkt
generative/io/wkt.cpp:13
↓ 64 callersFunctiontokenize
(s: str)
tests/test_grammar.py:12
↓ 34 callersMethodcaptured_output
(&mut self)
tests/mod.rs:26
↓ 34 callersFunctiontool
Get a command to run the given tool with Cargo
tests/mod.rs:38
↓ 26 callersMethod_parse
Parse the given rule into textual tokens.
generative/lsystem/production.py:104
↓ 26 callersMethodcend
generative/include/generative/geometry-flattener.h:45
↓ 25 callersMethodend
generative/include/generative/geometry-flattener.h:48
↓ 25 callersFunctionflatten
Convert the given geometries to a sequence of tagged points.
generative/flatten/flatten.py:59
↓ 25 callersMethodrewrite
Apply the production rules to the given string to rewrite it.
generative/lsystem/grammar.py:154
↓ 21 callersFunctionread_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 callersMethodread
generative/io/tgf-graph-reader.cpp:16
↓ 20 callersFunctionwrite_geometries
(writer: W, geometries: G)
generative/io/wkt.rs:136
↓ 16 callersMethodbegin
generative/include/generative/geometry-flattener.h:47
↓ 16 callersFunctiondeserialize_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 callersMethodget_edge_pairs
generative/noding/geometry-graph.cpp:51
↓ 15 callersFunctionget_output_writer
(output: &Option<PathBuf>)
generative/io/stdio.rs:5
↓ 13 callersMethodadd_edge
generative/noding/geometry-graph.cpp:45
↓ 13 callersMethodadd_node
generative/noding/geometry-graph.cpp:33
↓ 13 callersFunctionflatten_nested_geometries
Compare this against the C++ GeometryFlattener and weep for joy.
generative/flatten/geometries.rs:56
↓ 13 callersFunctionunflatten
Convert the sequence of tagged points back into a sequence of geometries.
generative/flatten/flatten.py:133
↓ 12 callersMethodforward
Move the turtle forward by the given stepsize.
generative/lsystem/turtle.py:40
↓ 12 callersFunctionget_input_reader
(input: &Option<PathBuf>)
generative/io/stdio.rs:15
↓ 12 callersMethodinterpret
Interpret the given tokens as 3D Turtle commands.
generative/lsystem/interpreter.py:64
↓ 12 callersMethodnext
(&mut self)
generative/io/wkt.rs:164
↓ 12 callersFunctionserialize_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 callersMethodtokenize
Tokenize the given input using the configured commandset.
generative/lsystem/interpreter.py:47
↓ 10 callersFunctionflatten_single
Recursively convert a single geometry to a sequence of tagged points.
generative/flatten/flatten.py:65
↓ 10 callersFunctionread_geometries
(reader: R)
generative/io/wkt.rs:129
↓ 9 callersMethodcbegin
generative/include/generative/geometry-flattener.h:44
↓ 9 callersFunctionnode
(geoms: G)
generative/noding/mod.rs:6
↓ 8 callersFunctionread_wkt_geometries_and_styles
(reader: R)
generative/io/wkt.rs:253
↓ 8 callersFunctionwrap_tagged
Wrap an already tagged point sequence in another layer of _BEGIN and _END tags.
generative/flatten/flatten.py:116
↓ 7 callersFunctiondeserialize_geometries
(buffer: io.TextIOWrapper, fmt="wkt")
generative/io/wkt.py:123
↓ 7 callersMethodwrite
(&self, writer: &mut W)
tools/streamline.rs:225
↓ 7 callersMethodwrite
@brief Write the given graph to the provided ostream.
generative/include/generative/io/graph-writer.h:20
↓ 7 callersFunctionwrite_graph
( mut writer: W, graph: &GeometryGraph<Direction>, format: &GraphFormat, )
generative/io/tgf.rs:33
↓ 6 callersFunctionflatten_geometries_into_points
Flatten the given geometries into a point cloud NOTE: Closed rings are implicitly opened.
generative/flatten/points.rs:67
↓ 6 callersMethodlines
(&self)
generative/triangulation.rs:57
↓ 6 callersMethodparse
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 callersFunctionsnap_geoms
( geoms: impl Iterator<Item = Geometry>, strategy: SnappingStrategy, )
generative/snap.rs:28
↓ 6 callersFunctionsnap_graph
(graph: GeometryGraph<D>, strategy: SnappingStrategy)
generative/snap.rs:197
↓ 5 callersFunctionflatten_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 callersMethodgraph
(&self)
generative/triangulation.rs:130
↓ 5 callersMethodpitch
Pitch the turtle around its local Y axis.
generative/lsystem/turtle.py:55
↓ 5 callersFunctionsnap_coord_grid
(coord: Coord, tolerance: f64)
generative/snap.rs:105
↓ 5 callersFunctiontriangulate
Calculate the Delaunay triangulation of the given point cloud
generative/triangulation.rs:7
↓ 5 callersFunctionunzip
(iterable)
generative/projection.py:50
↓ 5 callersFunctionwkt_inner
(prefix: &'a str, s: &'a str)
generative/io/wkt.rs:19
↓ 5 callersFunctionwrite_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 callersMethodyaw
Yaw the turtle around its local Z axis.
generative/lsystem/turtle.py:47
↓ 4 callersFunction__unwrap_first_tag
Unwrap the first and any remaining tags.
generative/flatten/flatten.py:215
↓ 4 callersMethod_flush_active_line
(self)
generative/lsystem/interpreter.py:76
↓ 4 callersFunction_zeropad_3d
(points: Iterable[Tuple[float]])
generative/projection.py:121
↓ 4 callersMethodbuild
generative/noding/geometry-graph.cpp:107
↓ 4 callersMethodcoord
generative/include/generative/noding/geometry-graph.h:34
↓ 4 callersMethodget_edges
generative/noding/geometry-graph.cpp:71
↓ 4 callersFunctionget_tgf
(graph: &GeometryGraph<D>)
generative/snap.rs:382
↓ 4 callersFunctionimplicitly_open_linestring
(ls: LineString)
generative/flatten/points.rs:5
↓ 4 callersMethodpick_rule
Pick the right rule based off the probability values or the parametric condition.
generative/lsystem/grammar.py:95
↓ 4 callersFunctionpolygonize
( graph: &GeometryGraph<Direction>, )
generative/noding/mod.rs:45
↓ 3 callersMethodapply_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 callersFunctionbuild_transform
(args: &CmdlineOptions, center: Coord)
tools/transform.rs:110
↓ 3 callersMethodedges
generative/cxxbridge/geometry_graph.hpp:40
↓ 3 callersFunctionfilter_duplicate_ls
(mut ls: LineString, closed: bool)
generative/snap.rs:183
↓ 3 callersFunctionfrom_polar
(r: f64, theta: f64)
tools/grid.rs:480
↓ 3 callersMethodgenerate_random_coord
TODO: ndarray::Array1
generative/dla.rs:228
↓ 3 callersFunctiongeoms_coordwise
( geometries: impl Iterator<Item = Geometry>, transform: impl Fn(Coord) -> Coord + Copy, )
tools/transform.rs:267
↓ 3 callersMethodmap_coords_in_place_mut
(&mut self, mut func: impl FnMut(Coord<T>) -> Coord<T>)
generative/geometry_mut_map.rs:13
↓ 3 callersFunctionnode
generative/cxxbridge/noder.hpp:17
↓ 3 callersMethodnodes
generative/cxxbridge/geometry_graph.hpp:25
↓ 3 callersFunctionread_tgf_graph
(reader: R)
generative/io/tgf.rs:153
↓ 3 callersMethodroll
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 callersFunctionserialize_geometries
(geometries: Iterable[Geometry], buffer: io.TextIOWrapper, fmt="wkt")
generative/io/wkt.py:209
↓ 3 callersFunctionsnap_f64_grid
(value: f64, tolerance: f64)
generative/snap.rs:112
↓ 3 callersFunctiontokenize
(s: str)
tests/test_production.py:172
↓ 3 callersFunctionwrap_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 callersFunctionwrite_tgf_graph
( writer: &mut W, graph: &GeometryGraph<Direction>, )
generative/io/tgf.rs:48
↓ 2 callersFunction_rot_x
X axis rotation matrix.
generative/projection.py:79
↓ 2 callersFunctionadd_cs
(coords, segments)
tools/render.py:91
↓ 2 callersFunctionadd_ring_to_path_data
(mut data: element::path::Data, ring: &LineString)
tools/wkt2svg.rs:224
↓ 2 callersFunctionbias
(distribution, biases, temperature)
tools/random-production-rules.py:185
↓ 2 callersFunctionbounding_box
(geometries: &[Geometry])
tools/transform.rs:156
↓ 2 callersMethoddigraph
(&self)
generative/triangulation.rs:78
↓ 2 callersFunctionensure_3d
(points)
tools/render.py:84
↓ 2 callersFunctionfilter_duplicate_vertices
(geom: Geometry)
generative/snap.rs:133
↓ 2 callersMethodgenerate_random
(&mut self)
generative/dla.rs:222
↓ 2 callersFunctiongenerate_random_seed_if_not_specified
(seed: u64)
tools/traverse.rs:62
↓ 2 callersFunctiongeometry_to_outer_iterator
(geometry: Option<Geometry>)
generative/flatten/geometries.rs:34
↓ 2 callersFunctioninsert_geometry
( dwg: svgwrite.Drawing, geom: shapely.geometry.base.BaseGeometry, group: svgwrite.container.Group
tools/wkt2svg.py:131
↓ 2 callersFunctionis_multi_geometry
generative/geometry-flattener.cpp:8
↓ 2 callersMethodloop
Apply the productions rules n times to the given axiom, and return the result.
generative/lsystem/grammar.py:179
↓ 2 callersFunctionquad_i2x
(i: usize, delta_x: f64, min_x: f64)
tools/grid.rs:245
↓ 2 callersFunctionquad_j2y
(j: usize, delta_y: f64, min_y: f64)
tools/grid.rs:249
↓ 2 callersMethodrun
Add the specified number of particles to the model.
generative/dla.rs:100
↓ 2 callersFunctionscale_range
(src: &[f64; 2], dst: &[f64; 2], v: f64)
tools/transform.rs:241
↓ 2 callersFunctionsimulate_coordinate
( original: Coord, field: &VectorField, timestep: f64, num_timesteps: usize, record_stream
tools/streamline.rs:320
↓ 2 callersFunctionsnap_geom_grid
(mut geom: Geometry, tolerance: f64)
generative/snap.rs:128
↓ 2 callersFunctionsnap_graph_nodes
Snap `snap_from` to `snap_to`, and update all of `snap_from`s adjacencies
generative/snap.rs:303
↓ 2 callersMethodtriangle_indices
(&self)
generative/triangulation.rs:31
↓ 2 callersMethodtriangle_points
(&self)
generative/triangulation.rs:38
next →1–100 of 516, ranked by callers