Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Formlabs/foxtrot
/ functions
Functions
523 in github.com/Formlabs/foxtrot
⨍
Functions
523
◇
Types & classes
211
↓ 133 callers
Function
kw
Matches a specific keyword, which ensuring that it's not followed by a letter. This avoids cases like `generic_expression` being parsed as `generic`,
express/src/parse.rs:40
↓ 117 callers
Function
char
Overloaded version of nom's `char` that eats trailing whitespace
express/src/parse.rs:28
↓ 76 callers
Method
push
(&mut self, t: &mut Triangulation, point: PointIndex, data: ContourData)
cdt/src/contour.rs:99
↓ 63 callers
Method
len
(&self)
nurbs/src/knot_vector.rs:58
↓ 41 callers
Method
edge
(&self, h: HullIndex)
cdt/src/hull.rs:189
↓ 21 callers
Method
next
(&self, e: EdgeIndex)
cdt/src/half.rs:86
↓ 21 callers
Function
tag
Overloaded version of nom's `tag` that eats trailing whitespace
express/src/parse.rs:33
↓ 18 callers
Method
entity
(&'a self, i: Id<T>)
step/src/step_file.rs:110
↓ 18 callers
Function
parens
Returns a parser which recognizes '(' p ')' with optional whitespace
express/src/parse.rs:46
↓ 16 callers
Function
list1
Returns a parser for zero or more items p, delimited by c with whitespace
express/src/parse.rs:60
↓ 15 callers
Method
insert
Insert a new Point-Edge pair into the hull, using a hint to save time searching for the new point's position.
cdt/src/hull.rs:221
↓ 14 callers
Method
insert
(&mut self, raw_id: usize, entity: T)
experiments/delegation_example.rs:16
↓ 14 callers
Function
parse
Main entry function for the parser
express/src/parse.rs:136
↓ 13 callers
Method
legalize
(&mut self, e_ab: EdgeIndex)
cdt/src/triangulate.rs:1064
↓ 12 callers
Method
update
(&mut self, h: HullIndex, e: EdgeIndex)
cdt/src/hull.rs:79
↓ 11 callers
Method
cast
(&self)
step/src/id.rs:12
↓ 11 callers
Method
get
(&self, id: &Id<T>)
experiments/delegation_example.rs:23
↓ 11 callers
Method
prev
(&self, e: EdgeIndex)
cdt/src/half.rs:90
↓ 10 callers
Function
entity_decl
(s: &str)
express/src/parse.rs:832
↓ 10 callers
Method
find_span
For basis functions of order `p + 1`, finds the span in the knot vector that is relevant for position `u`. ALGORITHM A2.1
nurbs/src/knot_vector.rs:31
↓ 10 callers
Method
orient2d
(&self, pa: PointIndex, pb: PointIndex, pc: PointIndex)
cdt/src/triangulate.rs:398
↓ 9 callers
Function
axis2_placement_3d
(s: &StepFile, t: Id<Axis2Placement3d_>)
triangulate/src/triangulate.rs:320
↓ 9 callers
Method
edge
(&self, e: EdgeIndex)
cdt/src/half.rs:94
↓ 9 callers
Method
step
Advances the triangulation by one step. # Errors This may return [`Error::PointOnFixedEdge`], [`Error::NoMorePoints`], or [`Error::CrossingFixedEdge`
cdt/src/triangulate.rs:498
↓ 9 callers
Function
ws
Returns a parser which runs `p` then consumes all whitespace
express/src/parse.rs:21
↓ 8 callers
Function
expression
(s: &str)
express/src/parse.rs:950
↓ 8 callers
Method
max_u
(&self)
nurbs/src/nd_curve.rs:29
↓ 8 callers
Method
min_u
(&self)
nurbs/src/nd_curve.rs:26
↓ 7 callers
Method
add
(self, i: usize)
cdt/src/indexes.rs:28
↓ 7 callers
Method
fixed
(&self)
cdt/src/half.rs:41
↓ 7 callers
Method
get
For a given point, returns the HullIndex which will be split when this point is inserted. Use `Hull::edge` to get the associated EdgeIndex.
cdt/src/hull.rs:85
↓ 7 callers
Function
nom_err
Helper function to generate a `nom` error result
step/src/parse.rs:21
↓ 7 callers
Function
setStatus
(s)
wasm/deploy/app.js:6
↓ 7 callers
Method
triangles
Returns all of the resulting triangles, as indexes into the original `points` array from the constructor.
cdt/src/triangulate.rs:1125
↓ 6 callers
Method
basis_funs_for_span
Inner implementation of basis_funs
nurbs/src/knot_vector.rs:77
↓ 6 callers
Method
check
Sanity-checks invariants of the data structure, raising an assertion failure if an invariant is broken. This is a slow operation and should only be r
cdt/src/hull.rs:141
↓ 6 callers
Method
degree
(&self)
nurbs/src/knot_vector.rs:55
↓ 6 callers
Method
done
Checks whether the triangulation is done
cdt/src/triangulate.rs:407
↓ 6 callers
Method
erase
Removes the given point from the hull
cdt/src/hull.rs:257
↓ 6 callers
Function
function_call
(s: &str)
express/src/parse.rs:979
↓ 6 callers
Method
index_of
Returns the hull index associated with the given point
cdt/src/hull.rs:194
↓ 6 callers
Function
one_of
(s: &str)
express/src/parse.rs:1522
↓ 6 callers
Function
orient2d
(a: Point, b: Point, c: Point)
cdt/src/predicates.rs:7
↓ 6 callers
Method
right_hull
(&self, h: HullIndex)
cdt/src/hull.rs:185
↓ 6 callers
Method
run
Runs the triangulation algorithm until completion # Errors This may return [`Error::PointOnFixedEdge`], [`Error::NoMorePoints`], or [`Error::Crossing
cdt/src/triangulate.rs:391
↓ 6 callers
Method
save_debug_svg
Writes the current state of the triangulation to an SVG file, including the upper hull as a debugging visualization.
cdt/src/triangulate.rs:1151
↓ 6 callers
Function
setAxisLabel
(s)
wasm/deploy/app.js:69
↓ 5 callers
Method
bucket_h
(&self, h: HullIndex)
cdt/src/hull.rs:308
↓ 5 callers
Function
domain_rule
(s: &str)
express/src/parse.rs:787
↓ 5 callers
Method
left_hull
(&self, h: HullIndex)
cdt/src/hull.rs:181
↓ 5 callers
Method
parse
Parses a STEP file from a raw array of bytes `data` must be preprocessed by [`strip_flatten`] first
step/src/step_file.rs:18
↓ 5 callers
Function
parse_entity_decl
(s: &[u8])
step/src/parse.rs:204
↓ 5 callers
Method
point
Converts a point at position t onto the 3D line, using basis functions of order `p + 1` respectively. ALGORITHM A4.1
nurbs/src/nurbs_curve.rs:11
↓ 5 callers
Function
render
()
wasm/deploy/scene.js:51
↓ 5 callers
Method
toggle_lock_sign
Toggles the lock sign of an edge and its buddy (if present) See discussion of [`Edge::sign`] for why this is signed, rather than a simple flag.
cdt/src/half.rs:74
↓ 4 callers
Method
basis_funs_derivs_for_span
(&self, i: usize, u: f64, n: usize)
nurbs/src/knot_vector.rs:108
↓ 4 callers
Method
bucket
Looks up what bucket a given pseudo-angle will fall into.
cdt/src/hull.rs:313
↓ 4 callers
Method
curve_point
Converts a point at position t onto the 3D line, using basis functions of order `p + 1` respectively. ALGORITHM A3.1
nurbs/src/nd_curve.rs:37
↓ 4 callers
Function
gen
(s: &mut Syntax)
express/src/gen.rs:428
↓ 4 callers
Method
link_new
Links a new edge in the triangulation, copying the value of `fixed` from the old edge which is its buddy. This differs from [`Half::link`], which che
cdt/src/half.rs:351
↓ 4 callers
Method
max_v
(&self)
nurbs/src/nd_surface.rs:41
↓ 4 callers
Method
min_v
(&self)
nurbs/src/nd_surface.rs:38
↓ 4 callers
Method
mouse_pos
Converts a normalized mouse position into 3D
gui/src/camera.rs:80
↓ 4 callers
Method
next_index
(&self)
cdt/src/indexes.rs:89
↓ 4 callers
Function
primary
(s: &str)
express/src/parse.rs:1564
↓ 4 callers
Function
query_expression
(s: &str)
express/src/parse.rs:1715
↓ 4 callers
Method
set_sign
(&mut self, e: EdgeIndex, v: Option<bool>)
cdt/src/half.rs:62
↓ 4 callers
Function
simple_factor
(s: &str)
express/src/parse.rs:2118
↓ 3 callers
Method
build
(&mut self, s: &'a str)
express/src/gen.rs:78
↓ 3 callers
Function
cartesian_point
(s: &StepFile, a: Id<CartesianPoint_>)
triangulate/src/triangulate.rs:308
↓ 3 callers
Function
check_str
Parse a single attribute from a parameter list, consuming the trailing comma (if this is midway through the list) or close parens (at the end) The in
step/src/parse.rs:174
↓ 3 callers
Method
clone
(&self)
step/src/id.rs:21
↓ 3 callers
Function
closed_shell
(s: &StepFile, c: ClosedShell, mesh: &mut Mesh, stats: &mut Stats)
triangulate/src/triangulate.rs:350
↓ 3 callers
Function
control_points_1d
(s: &StepFile, row: &Vec<CartesianPoint>)
triangulate/src/triangulate.rs:619
↓ 3 callers
Function
init
()
wasm/deploy/scene.js:8
↓ 3 callers
Method
is_entity
(&self, s: &str)
express/src/gen.rs:35
↓ 3 callers
Method
lower
Lowers a 3D point on a specific surface into a 2D space defined by the surface type. This should only be called from `lower_verts`, to ensure that `p
triangulate/src/surface.rs:127
↓ 3 callers
Method
max_t
(&self)
nurbs/src/knot_vector.rs:64
↓ 3 callers
Method
min_t
(&self)
nurbs/src/knot_vector.rs:61
↓ 3 callers
Method
model_matrix
(&self)
gui/src/camera.rs:137
↓ 3 callers
Method
name
(&self)
express/src/gen.rs:875
↓ 3 callers
Function
pseudo_angle
Returns a pseudo-angle in the 0-1 range, without expensive trig functions The angle has the following shape: ```text 0.25 ^ y | | 0 |
cdt/src/predicates.rs:40
↓ 3 callers
Method
push_edge
(&mut self, edge: Edge)
cdt/src/half.rs:98
↓ 3 callers
Method
resize
(&mut self, size: PhysicalSize<u32>)
gui/src/app.rs:124
↓ 3 callers
Method
surface_point_from_basis
(&self, uspan: usize, Nu: &VecF, vspan: usize, Nv: &VecF)
nurbs/src/nd_surface.rs:59
↓ 3 callers
Function
term
(s: &str)
express/src/parse.rs:2366
↓ 3 callers
Function
triangulate
(s: &StepFile)
triangulate/src/triangulate.rs:66
↓ 3 callers
Function
type_decl
(s: &str)
express/src/parse.rs:2389
↓ 3 callers
Method
view_matrix
Returns a matrix which compensates for window aspect ratio and clipping
gui/src/camera.rs:154
↓ 3 callers
Function
where_clause
(s: &str)
express/src/parse.rs:2505
↓ 2 callers
Method
acute
(&self, pa: PointIndex, pb: PointIndex, pc: PointIndex)
cdt/src/triangulate.rs:402
↓ 2 callers
Function
advanced_face
(s: &StepFile, f: AdvancedFace, mesh: &mut Mesh, stats: &mut Stats)
triangulate/src/triangulate.rs:360
↓ 2 callers
Method
aspect_ratio
Computes the relative scale of U and V, based on average distance between control points in 3D space
nurbs/src/nd_surface.rs:124
↓ 2 callers
Method
attributes
(&mut self, s: &'a str)
express/src/gen.rs:86
↓ 2 callers
Function
build_err
(s: &'a str, msg: &'static str)
express/src/parse.rs:13
↓ 2 callers
Function
build_transform_stack
(s: &'a StepFile, flip: bool)
triangulate/src/triangulate.rs:29
↓ 2 callers
Method
check
Checks that invariants of the algorithm are maintained. This is a slow operation and should only be used for debugging. # Panics Panics if invariants
cdt/src/triangulate.rs:488
↓ 2 callers
Function
control_points_2d
(s: &StepFile, rows: &Vec<Vec<CartesianPoint>>)
triangulate/src/triangulate.rs:623
↓ 2 callers
Function
direction
(s: &StepFile, a: Direction)
triangulate/src/triangulate.rs:313
↓ 2 callers
Method
draw
(&self, camera: &Camera, queue: &wgpu::Queue, frame: &wgpu::SwapChainTexture,
gui/src/model.rs:183
next →
1–100 of 523, ranked by callers