warp.fem.Quadmesh3D#

class warp.fem.Quadmesh3D(
quad_vertex_indices,
positions,
build_bvh=False,
temporary_store=None,
)[source]#

Three-dimensional quadrilateral mesh

Parameters:
__init__(
quad_vertex_indices,
positions,
build_bvh=False,
temporary_store=None,
)[source]#

Constructs a D-dimensional quadrilateral mesh.

Parameters:
  • quad_vertex_indices (array) – warp array of shape (num_tris, 4) containing vertex indices for each quad, in counter-clockwise order

  • positions (array) – warp array of shape (num_vertices, D) containing the position of each vertex

  • temporary_store (TemporaryStore | None) – shared pool from which to allocate temporary arrays

  • build_bvh (bool)

Methods

__init__(quad_vertex_indices, positions[, ...])

Constructs a D-dimensional quadrilateral mesh.

boundary_side_count()

build_bvh([device])

Rebuilds the geometry's Bounding Volume Hierarchy (BVH) for device from scratch.

bvh_id(device)

cell_arg_value(device)

cell_count()

cell_inverse_deformation_gradient(args, s)

Device function returning the matrix right-transforming a gradient w.r.t.

cell_measure(args, s)

Device function returning the measure determinant (e.g. volume, area) at a given point.

cell_normal(args, s)

Device function returning the element normal at a sample point.

fill_cell_arg(args, device)

fill_cell_topo_arg(args, device)

fill_side_arg(args, device)

fill_side_index_arg(args, device)

fill_side_topo_arg(args, device)

make_filtered_cell_lookup([filter_func])

reference_cell()

reference_side()

side_arg_value(device)

side_count()

side_index_arg_value(device)

side_inner_inverse_deformation_gradient(...)

Device function returning the matrix right-transforming a gradient w.r.t.

side_measure(args, s)

Device function returning the measure determinant (e.g. volume, area) at a given point.

side_measure_ratio(args, s)

Device function returning the ratio of the measure of a side to that of its neighbour cells

side_normal(args, s)

Device function returning the element normal at a sample point

side_outer_inverse_deformation_gradient(...)

Device function returning the matrix right-transforming a gradient w.r.t.

supports_cell_lookup(device)

update_bvh([device])

Refits the geometry's BVH if it exists on device, or builds it from scratch otherwise.

vertex_count()

Attributes

CellArg

Structure containing arguments to be passed to device functions evaluating cell-related quantities

SideArg

Structure containing arguments to be passed to device functions evaluating side-related quantities

SideIndexArg

Structure containing arguments to be passed to device functions for indexing sides

base

Returns the base geometry from which this geometry derives its topology.

boundary_side_index

cell_bounds

cell_bvh_id

cell_deformation_gradient

cell_dimension

Manifold dimension of the geometry cells

cell_lookup

cell_measure_ratio

cell_position

dimension

edge_quad_indices

edge_vertex_indices

name

side_closest_point

side_deformation_gradient

side_from_cell_coords

side_inner_cell_coords

side_inner_cell_index

side_outer_cell_coords

side_outer_cell_index

side_position

side_to_cell_arg

dimension: int = 3#
CellArg: Struct = <warp._src.codegen.Struct object>#

Structure containing arguments to be passed to device functions evaluating cell-related quantities

SideArg: Struct = <warp._src.codegen.Struct object>#

Structure containing arguments to be passed to device functions evaluating side-related quantities

side_to_cell_arg = <Function Quadmesh3D__side_to_cell_arg(side_arg: warp._src.fem.geometry.quadmesh.Quadmesh3DSideArg)>#
Parameters:

side_arg (Quadmesh3DSideArg)