MCPcopy Create free account

hub / github.com/Formlabs/foxtrot / functions

Functions523 in github.com/Formlabs/foxtrot

↓ 133 callersFunctionkw
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 callersFunctionchar
Overloaded version of nom's `char` that eats trailing whitespace
express/src/parse.rs:28
↓ 76 callersMethodpush
(&mut self, t: &mut Triangulation, point: PointIndex, data: ContourData)
cdt/src/contour.rs:99
↓ 63 callersMethodlen
(&self)
nurbs/src/knot_vector.rs:58
↓ 41 callersMethodedge
(&self, h: HullIndex)
cdt/src/hull.rs:189
↓ 21 callersMethodnext
(&self, e: EdgeIndex)
cdt/src/half.rs:86
↓ 21 callersFunctiontag
Overloaded version of nom's `tag` that eats trailing whitespace
express/src/parse.rs:33
↓ 18 callersMethodentity
(&'a self, i: Id<T>)
step/src/step_file.rs:110
↓ 18 callersFunctionparens
Returns a parser which recognizes '(' p ')' with optional whitespace
express/src/parse.rs:46
↓ 16 callersFunctionlist1
Returns a parser for zero or more items p, delimited by c with whitespace
express/src/parse.rs:60
↓ 15 callersMethodinsert
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 callersMethodinsert
(&mut self, raw_id: usize, entity: T)
experiments/delegation_example.rs:16
↓ 14 callersFunctionparse
Main entry function for the parser
express/src/parse.rs:136
↓ 13 callersMethodlegalize
(&mut self, e_ab: EdgeIndex)
cdt/src/triangulate.rs:1064
↓ 12 callersMethodupdate
(&mut self, h: HullIndex, e: EdgeIndex)
cdt/src/hull.rs:79
↓ 11 callersMethodcast
(&self)
step/src/id.rs:12
↓ 11 callersMethodget
(&self, id: &Id<T>)
experiments/delegation_example.rs:23
↓ 11 callersMethodprev
(&self, e: EdgeIndex)
cdt/src/half.rs:90
↓ 10 callersFunctionentity_decl
(s: &str)
express/src/parse.rs:832
↓ 10 callersMethodfind_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 callersMethodorient2d
(&self, pa: PointIndex, pb: PointIndex, pc: PointIndex)
cdt/src/triangulate.rs:398
↓ 9 callersFunctionaxis2_placement_3d
(s: &StepFile, t: Id<Axis2Placement3d_>)
triangulate/src/triangulate.rs:320
↓ 9 callersMethodedge
(&self, e: EdgeIndex)
cdt/src/half.rs:94
↓ 9 callersMethodstep
Advances the triangulation by one step. # Errors This may return [`Error::PointOnFixedEdge`], [`Error::NoMorePoints`], or [`Error::CrossingFixedEdge`
cdt/src/triangulate.rs:498
↓ 9 callersFunctionws
Returns a parser which runs `p` then consumes all whitespace
express/src/parse.rs:21
↓ 8 callersFunctionexpression
(s: &str)
express/src/parse.rs:950
↓ 8 callersMethodmax_u
(&self)
nurbs/src/nd_curve.rs:29
↓ 8 callersMethodmin_u
(&self)
nurbs/src/nd_curve.rs:26
↓ 7 callersMethodadd
(self, i: usize)
cdt/src/indexes.rs:28
↓ 7 callersMethodfixed
(&self)
cdt/src/half.rs:41
↓ 7 callersMethodget
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 callersFunctionnom_err
Helper function to generate a `nom` error result
step/src/parse.rs:21
↓ 7 callersFunctionsetStatus
(s)
wasm/deploy/app.js:6
↓ 7 callersMethodtriangles
Returns all of the resulting triangles, as indexes into the original `points` array from the constructor.
cdt/src/triangulate.rs:1125
↓ 6 callersMethodbasis_funs_for_span
Inner implementation of basis_funs
nurbs/src/knot_vector.rs:77
↓ 6 callersMethodcheck
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 callersMethoddegree
(&self)
nurbs/src/knot_vector.rs:55
↓ 6 callersMethoddone
Checks whether the triangulation is done
cdt/src/triangulate.rs:407
↓ 6 callersMethoderase
Removes the given point from the hull
cdt/src/hull.rs:257
↓ 6 callersFunctionfunction_call
(s: &str)
express/src/parse.rs:979
↓ 6 callersMethodindex_of
Returns the hull index associated with the given point
cdt/src/hull.rs:194
↓ 6 callersFunctionone_of
(s: &str)
express/src/parse.rs:1522
↓ 6 callersFunctionorient2d
(a: Point, b: Point, c: Point)
cdt/src/predicates.rs:7
↓ 6 callersMethodright_hull
(&self, h: HullIndex)
cdt/src/hull.rs:185
↓ 6 callersMethodrun
Runs the triangulation algorithm until completion # Errors This may return [`Error::PointOnFixedEdge`], [`Error::NoMorePoints`], or [`Error::Crossing
cdt/src/triangulate.rs:391
↓ 6 callersMethodsave_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 callersFunctionsetAxisLabel
(s)
wasm/deploy/app.js:69
↓ 5 callersMethodbucket_h
(&self, h: HullIndex)
cdt/src/hull.rs:308
↓ 5 callersFunctiondomain_rule
(s: &str)
express/src/parse.rs:787
↓ 5 callersMethodleft_hull
(&self, h: HullIndex)
cdt/src/hull.rs:181
↓ 5 callersMethodparse
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 callersFunctionparse_entity_decl
(s: &[u8])
step/src/parse.rs:204
↓ 5 callersMethodpoint
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 callersFunctionrender
()
wasm/deploy/scene.js:51
↓ 5 callersMethodtoggle_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 callersMethodbasis_funs_derivs_for_span
(&self, i: usize, u: f64, n: usize)
nurbs/src/knot_vector.rs:108
↓ 4 callersMethodbucket
Looks up what bucket a given pseudo-angle will fall into.
cdt/src/hull.rs:313
↓ 4 callersMethodcurve_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 callersFunctiongen
(s: &mut Syntax)
express/src/gen.rs:428
↓ 4 callersMethodlink_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 callersMethodmax_v
(&self)
nurbs/src/nd_surface.rs:41
↓ 4 callersMethodmin_v
(&self)
nurbs/src/nd_surface.rs:38
↓ 4 callersMethodmouse_pos
Converts a normalized mouse position into 3D
gui/src/camera.rs:80
↓ 4 callersMethodnext_index
(&self)
cdt/src/indexes.rs:89
↓ 4 callersFunctionprimary
(s: &str)
express/src/parse.rs:1564
↓ 4 callersFunctionquery_expression
(s: &str)
express/src/parse.rs:1715
↓ 4 callersMethodset_sign
(&mut self, e: EdgeIndex, v: Option<bool>)
cdt/src/half.rs:62
↓ 4 callersFunctionsimple_factor
(s: &str)
express/src/parse.rs:2118
↓ 3 callersMethodbuild
(&mut self, s: &'a str)
express/src/gen.rs:78
↓ 3 callersFunctioncartesian_point
(s: &StepFile, a: Id<CartesianPoint_>)
triangulate/src/triangulate.rs:308
↓ 3 callersFunctioncheck_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 callersMethodclone
(&self)
step/src/id.rs:21
↓ 3 callersFunctionclosed_shell
(s: &StepFile, c: ClosedShell, mesh: &mut Mesh, stats: &mut Stats)
triangulate/src/triangulate.rs:350
↓ 3 callersFunctioncontrol_points_1d
(s: &StepFile, row: &Vec<CartesianPoint>)
triangulate/src/triangulate.rs:619
↓ 3 callersFunctioninit
()
wasm/deploy/scene.js:8
↓ 3 callersMethodis_entity
(&self, s: &str)
express/src/gen.rs:35
↓ 3 callersMethodlower
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 callersMethodmax_t
(&self)
nurbs/src/knot_vector.rs:64
↓ 3 callersMethodmin_t
(&self)
nurbs/src/knot_vector.rs:61
↓ 3 callersMethodmodel_matrix
(&self)
gui/src/camera.rs:137
↓ 3 callersMethodname
(&self)
express/src/gen.rs:875
↓ 3 callersFunctionpseudo_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 callersMethodpush_edge
(&mut self, edge: Edge)
cdt/src/half.rs:98
↓ 3 callersMethodresize
(&mut self, size: PhysicalSize<u32>)
gui/src/app.rs:124
↓ 3 callersMethodsurface_point_from_basis
(&self, uspan: usize, Nu: &VecF, vspan: usize, Nv: &VecF)
nurbs/src/nd_surface.rs:59
↓ 3 callersFunctionterm
(s: &str)
express/src/parse.rs:2366
↓ 3 callersFunctiontriangulate
(s: &StepFile)
triangulate/src/triangulate.rs:66
↓ 3 callersFunctiontype_decl
(s: &str)
express/src/parse.rs:2389
↓ 3 callersMethodview_matrix
Returns a matrix which compensates for window aspect ratio and clipping
gui/src/camera.rs:154
↓ 3 callersFunctionwhere_clause
(s: &str)
express/src/parse.rs:2505
↓ 2 callersMethodacute
(&self, pa: PointIndex, pb: PointIndex, pc: PointIndex)
cdt/src/triangulate.rs:402
↓ 2 callersFunctionadvanced_face
(s: &StepFile, f: AdvancedFace, mesh: &mut Mesh, stats: &mut Stats)
triangulate/src/triangulate.rs:360
↓ 2 callersMethodaspect_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 callersMethodattributes
(&mut self, s: &'a str)
express/src/gen.rs:86
↓ 2 callersFunctionbuild_err
(s: &'a str, msg: &'static str)
express/src/parse.rs:13
↓ 2 callersFunctionbuild_transform_stack
(s: &'a StepFile, flip: bool)
triangulate/src/triangulate.rs:29
↓ 2 callersMethodcheck
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 callersFunctioncontrol_points_2d
(s: &StepFile, rows: &Vec<Vec<CartesianPoint>>)
triangulate/src/triangulate.rs:623
↓ 2 callersFunctiondirection
(s: &StepFile, a: Direction)
triangulate/src/triangulate.rs:313
↓ 2 callersMethoddraw
(&self, camera: &Camera, queue: &wgpu::Queue, frame: &wgpu::SwapChainTexture,
gui/src/model.rs:183
next →1–100 of 523, ranked by callers