MCPcopy Index your code

hub / github.com/Gnurfos/transvoxel_rs / functions

Functions225 in github.com/Gnurfos/transvoxel_rs

↓ 38 callersFunctionregular_position
(block: &Block<f32>, i: usize, j: usize, k: usize, transition_sides: &TransitionSides)
examples/shared/utils.rs:387
↓ 26 callersMethodadd
(self, rhs: &[C; 3])
src/structs/position.rs:65
↓ 21 callersMethodset
(&mut self, x: f32, y: f32, z: f32)
src/unit_tests/test_utils.rs:367
↓ 17 callersMethodbuild
Output the Mesh
src/structs/generic_mesh.rs:60
↓ 16 callersMethoddensity
(&self)
src/traits/voxel_data.rs:25
↓ 12 callersMethodextract
(&self, threshold: f32)
src/unit_tests/test_utils.rs:376
↓ 10 callersMethodcentral
(&self)
src/structs/block_star_view.rs:35
↓ 10 callersFunctionextract
Extracts an iso-surface mesh Arguments: * `blocks`: view of the block that has to be extracted and its data * `threshold`: density value defining t
src/extraction.rs:26
↓ 9 callersFunctiontcell_highres_face_gridpoint
(u: isize, v: isize)
src/implementation/aux_tables.rs:61
↓ 8 callersMethodblock
(&self)
src/traits/voxel_block.rs:24
↓ 8 callersMethodregular_voxel_data
(&mut self, voxel_index: RegularVoxelIndex)
src/implementation/algorithm.rs:178
↓ 8 callersMethodtransition_grid_point_data
(&mut self, voxel_index: HighResolutionVoxelIndex)
src/implementation/algorithm.rs:182
↓ 6 callersMethoddiff
Subtraction
src/traits/voxel_data.rs:56
↓ 5 callersMethodbuild
Build a Bevy mesh, producing a triangle list mesh with positions and normals from our mesh, but UV coordinates all set to 0 */
examples/shared/bevy_mesh.rs:31
↓ 5 callersMethodextract2
(&self, threshold: f32, transition_sides: TransitionSides)
src/unit_tests/test_utils.rs:370
↓ 5 callersMethodoriginal_voxel_position
Position of a given voxel, on the original regular grid for the block (for field sampling purposes)
src/structs/block.rs:68
↓ 4 callersFunctionappend_f3
(dest: &mut Vec<[f32; 3]>, src: &VertexAttributeValues, transform: &Transform)
examples/shared/shapes.rs:91
↓ 4 callersMethodget
(&self, index: VoxelIndex)
src/traits/voxel_block.rs:29
↓ 4 callersFunctionhigh_res_face_grid_point_position
( block: &Block<f32>, side: TransitionSide, cell_u: usize, cell_v: usize, delta_u: usize,
examples/shared/utils.rs:367
↓ 4 callersMethodhigh_res_neighbour_to
(&self, side: TransitionSide)
src/structs/block.rs:52
↓ 4 callersMethodreuse_index
(&self)
src/implementation/tables_wrapper.rs:25
↓ 4 callersFunctiontcell_reg_face_gridpoint
(u: usize, v: usize)
src/implementation/aux_tables.rs:65
↓ 4 callersMethodwith_neighbour
(mut self, neighbour: B2, side: TransitionSide)
src/structs/block_star_view.rs:93
↓ 3 callersMethodadd_triangle
( &mut self, vertex_1_index: VertexIndex, vertex_2_index: VertexIndex, vertex_
src/structs/generic_mesh.rs:193
↓ 3 callersMethodinterpolate_toward
Interpolate between this `self` position and `other`, by the given `factor` (0 giving self, 1 giving other)
src/structs/position.rs:35
↓ 3 callersFunctionmodels_map
()
examples/shared/models.rs:16
↓ 3 callersMethodmorphed_voxel_position
Position of a given voxel, after it has been potentially moved by "shrinking". (for output purposes).
src/structs/block.rs:80
↓ 3 callersFunctionmovement_axis
(input: &Res<ButtonInput<KeyCode>>, plus: KeyCode, minus: KeyCode)
examples/shared/flycam.rs:158
↓ 3 callersMethodsub
(self, rhs: &HighResolutionVoxelDelta)
src/implementation/voxel_coordinates.rs:221
↓ 3 callersMethodtransition_sides
(&self)
src/structs/block_star_view.rs:39
↓ 2 callersMethodadd_vertex_between
( &mut self, point_a: GridPoint<V, C>, point_b: GridPoint<V, C>, )
src/implementation/algorithm.rs:439
↓ 2 callersFunctionappend_f2
(dest: &mut Vec<[f32; 2]>, src: &VertexAttributeValues)
examples/shared/shapes.rs:103
↓ 2 callersMethodbuild_wireframe
Convert to a Bevy mesh lines list, with positions and normals from our mesh, but UV coordinates all set to 0. Lines shared between 2 triangles
examples/shared/bevy_mesh.rs:44
↓ 2 callersFunctioncreate_arrow
()
examples/shared/shapes.rs:12
↓ 2 callersFunctiondistance
(x1: f32, y1: f32, z1: f32, x2: f32, y2: f32, z2: f32)
examples/non_scalar_voxel_data/main.rs:215
↓ 2 callersFunctionextract_from_field
Extracts an iso-surface mesh for a [DataField] Arguments: * `field`: the source of data * `caching_strategy`: how to cache the field. See [FieldCac
src/extraction.rs:69
↓ 2 callersFunctionformat_list
(list: Vec<T>)
src/unit_tests/test_utils.rs:314
↓ 2 callersFunctionforward_walk_vector
(rotation: &Quat)
examples/shared/flycam.rs:45
↓ 2 callersMethodget_data
(&self, x: f32, y: f32, z: f32)
src/unit_tests/tests.rs:284
↓ 2 callersMethodget_data
(&self, x: f32, y: f32, z: f32)
examples/shared/models.rs:65
↓ 2 callersFunctiongrid_line_mesh
()
examples/shared/utils.rs:105
↓ 2 callersFunctiongrid_line_transforms
(block: &Block<f32>, transition_sides: &TransitionSides)
examples/shared/utils.rs:116
↓ 2 callersMethodgrid_point_a_index
(&self)
src/implementation/tables_wrapper.rs:69
↓ 2 callersMethodgrid_point_b_index
(&self)
src/implementation/tables_wrapper.rs:73
↓ 2 callersMethodinside
How to determine whether a point with a given density is inside or outside the mesh
src/traits/voxel_data.rs:35
↓ 2 callersFunctioninside_grid_points
( model: &models::Model, block: &Block<f32>, transition_sides: &TransitionSides, )
examples/shared/utils.rs:30
↓ 2 callersMethodnew_regular_vertex
Creates a new vertex. Returns its index in the vertices buffer
src/implementation/algorithm.rs:273
↓ 2 callersMethodnew_transition_vertex
( &mut self, cell_index: &TransitionCellIndex, grid_point_a_index: TransitionCellGridP
src/implementation/algorithm.rs:261
↓ 2 callersFunctionone_block_calls
(subs: usize)
src/unit_tests/density_calls_tests.rs:43
↓ 2 callersFunctionrandom_sides
(rng: &mut StdRng)
src/unit_tests/tests.rs:345
↓ 2 callersMethodregular_grid_point
(&mut self, voxel_index: RegularVoxelIndex)
src/implementation/algorithm.rs:294
↓ 2 callersMethodregular_grid_point_within_cell
( &mut self, cell_index: &RegularCellIndex, voxel_index_within_cell: RegularCellVoxelI
src/implementation/algorithm.rs:284
↓ 2 callersMethodregular_voxel_gradient
( &mut self, voxel_index: &RegularVoxelIndex, )
src/implementation/algorithm.rs:310
↓ 2 callersMethodreuse_du
(&self)
src/implementation/tables_wrapper.rs:49
↓ 2 callersMethodreuse_dv
(&self)
src/implementation/tables_wrapper.rs:53
↓ 2 callersMethodreuse_dx
(&self)
src/implementation/tables_wrapper.rs:9
↓ 2 callersMethodreuse_dy
(&self)
src/implementation/tables_wrapper.rs:13
↓ 2 callersMethodreuse_dz
(&self)
src/implementation/tables_wrapper.rs:17
↓ 2 callersFunctionrotate
(t: Triangle<f32>)
src/unit_tests/test_utils.rs:99
↓ 2 callersMethodsample
(&self, x: f32, y: f32, z: f32)
src/unit_tests/test_utils.rs:379
↓ 2 callersMethodto_color
(self)
examples/non_scalar_voxel_data/main.rs:78
↓ 2 callersMethodto_position
Gives the position of this voxel relative to the block (each coordinate ranging from 0 to 1) */
src/implementation/rotation.rs:59
↓ 2 callersMethodto_regular_voxel_index
( &self, block_size: usize, cell_index: &TransitionCellIndex, face_u: usize,
src/implementation/rotation.rs:93
↓ 2 callersMethodtransition_grid_point
( &mut self, cell_index: &TransitionCellIndex, grid_point_index: TransitionCellGridPoi
src/implementation/algorithm.rs:338
↓ 2 callersMethodvoxel_a_index
(&self)
src/implementation/tables_wrapper.rs:29
↓ 2 callersMethodvoxel_b_index
(&self)
src/implementation/tables_wrapper.rs:33
↓ 1 callersFunctionadd_grid
( commands: &mut Commands, meshes: &mut ResMut<Assets<Mesh>>, mats_cache: &Res<Materia
examples/transition_across_blocks/main.rs:200
↓ 1 callersFunctionadd_grid
( commands: &mut Commands, meshes: &mut ResMut<Assets<BevyMesh>>, mats_cache: &Res<MaterialsResour
examples/single_block/main.rs:184
↓ 1 callersMethodas_higher_res_neighbour_block_index
`self` being a double-resolution voxel on a transition face in this block, it coincides with a regular voxel on the neighbouring block at that face. T
src/implementation/voxel_coordinates.rs:164
↓ 1 callersMethodas_regular_index
Convert to the coinciding regular voxel index. Only valid if `self.on_regular_grid()`
src/implementation/voxel_coordinates.rs:152
↓ 1 callersMethodbuild
(self)
examples/non_scalar_voxel_data/main.rs:112
↓ 1 callersFunctioncan_shrink
Do not shrink grid point (in any direction) if it's close to a face where the other block is rendered at the same (or lower) level of details (ie: not
src/structs/block.rs:134
↓ 1 callersMethodextract_regular_cell
(&mut self, cell_index: RegularCellIndex)
src/implementation/algorithm.rs:76
↓ 1 callersMethodextract_regular_cells
(&mut self)
src/implementation/algorithm.rs:60
↓ 1 callersMethodextract_transition_cell
(&mut self, cell_index: &TransitionCellIndex)
src/implementation/algorithm.rs:114
↓ 1 callersMethodextract_transition_cells
(&mut self)
src/implementation/algorithm.rs:101
↓ 1 callersFunctionfield_model
( field: &mut dyn DataField<f32, f32>, wireframe: bool, block: Block<f32>, transition_sides: &
examples/shared/utils.rs:41
↓ 1 callersFunctionforward_vector
(rotation: &Quat)
examples/shared/flycam.rs:41
↓ 1 callersMethodget_model
(&self)
examples/transition_across_blocks/main.rs:352
↓ 1 callersMethodget_model
(&self)
examples/single_block/main.rs:327
↓ 1 callersMethodget_regular
( &self, cell_x: usize, cell_y: usize, cell_z: usize, reuse_index: Reg
src/implementation/algorithm.rs:469
↓ 1 callersFunctionget_regular_voxel_delta
(index: RegularCellVoxelIndex)
src/implementation/aux_tables.rs:49
↓ 1 callersMethodget_transition
( &self, cell: &TransitionCellIndex, reuse_index: TransitionReuseIndex, )
src/implementation/algorithm.rs:496
↓ 1 callersFunctionget_yaw_pitch
(rotation: &Quat)
examples/shared/flycam.rs:140
↓ 1 callersMethodhigh_res_face_grid_point_data
(&mut self, voxel_index: HighResolutionVoxelIndex)
src/implementation/algorithm.rs:435
↓ 1 callersMethodhigh_res_face_grid_point_gradient
( &mut self, base_voxel_index: &HighResolutionVoxelIndex, )
src/implementation/algorithm.rs:391
↓ 1 callersMethodhigh_res_face_grid_point_gradient_non_regular
( &mut self, base_voxel_index: &HighResolutionVoxelIndex, )
src/implementation/algorithm.rs:406
↓ 1 callersMethodhigh_res_face_grid_point_position
( &self, cell_index: &TransitionCellIndex, delta: HighResolutionVoxelDelta, )
src/implementation/algorithm.rs:381
↓ 1 callersFunctioninside_grid_points_for_field
( field: &mut dyn DataField<f32, f32>, block: &Block<f32>, transition_sides: &TransitionSides, )
examples/shared/utils.rs:60
↓ 1 callersFunctionload_materials
( materials: &mut ResMut<Assets<StandardMaterial>>, mut mats_cache: ResMut<MaterialsResource>, )
examples/transition_across_blocks/main.rs:51
↓ 1 callersFunctionload_materials
( materials: &mut ResMut<Assets<StandardMaterial>>, mats_cache: &mut ResMut<MaterialsResource>, )
examples/non_scalar_voxel_data/main.rs:38
↓ 1 callersFunctionload_materials
( materials: &mut ResMut<Assets<StandardMaterial>>, mut mats_cache: ResMut<MaterialsResource>, )
examples/single_block/main.rs:46
↓ 1 callersFunctionload_model
( commands: &mut Commands, meshes: &mut ResMut<Assets<Mesh>>, blocks: &mut ResMut<Bloc
examples/transition_across_blocks/main.rs:138
↓ 1 callersFunctionload_model
( commands: &mut Commands, meshes: &mut ResMut<Assets<BevyMesh>>, mats_cache: &ResMut<MaterialsRes
examples/non_scalar_voxel_data/main.rs:219
↓ 1 callersFunctionload_model
( commands: &mut Commands, meshes: &mut ResMut<Assets<BevyMesh>>, mats_cache: &Res<MaterialsResour
examples/single_block/main.rs:146
↓ 1 callersFunctionmake_tri
( x1: f32, y1: f32, z1: f32, x2: f32, y2: f32, z2: f32, x3: f32, y3: f32,
src/unit_tests/test_utils.rs:205
↓ 1 callersFunctionmake_tri_with_normals
( x1: f32, y1: f32, z1: f32, nx1: f32, ny1: f32, nz1: f32, x2: f32, y2: f32,
src/unit_tests/test_utils.rs:235
↓ 1 callersFunctionmerge
(mesh1: BevyMesh, mesh2: BevyMesh)
examples/shared/shapes.rs:18
↓ 1 callersFunctionmesh_for_model
( model: &models::Model, wireframe: bool, block: Block<f32>, transition_sides: &TransitionSide
examples/shared/utils.rs:19
↓ 1 callersMethodneighbour_at
(&self, side: TransitionSide)
src/structs/block_star_view.rs:43
next →1–100 of 225, ranked by callers