taichi.lang.mesh
¶
Module Contents¶
Classes¶
Taichi matrix field with SNode implementation. |
|
Functions¶
|
|
|
Attributes¶
- taichi.lang.mesh.MeshTopology¶
- taichi.lang.mesh.MeshElementType¶
- taichi.lang.mesh.MeshRelationType¶
- taichi.lang.mesh.ConvType¶
- taichi.lang.mesh.element_order¶
- taichi.lang.mesh.from_end_element_order¶
- taichi.lang.mesh.to_end_element_order¶
- taichi.lang.mesh.relation_by_orders¶
- taichi.lang.mesh.inverse_relation¶
- taichi.lang.mesh.element_type_name¶
- class taichi.lang.mesh.MeshAttrType(name, dtype, reorder, needs_grad)¶
- class taichi.lang.mesh.MeshReorderedScalarFieldProxy(field: taichi.lang.field.ScalarField, mesh_ptr: taichi._lib.core.MeshPtr, element_type: MeshElementType, g2r_field: taichi.lang.field.ScalarField)¶
- class taichi.lang.mesh.MeshReorderedMatrixFieldProxy(field: taichi.lang.matrix.MatrixField, mesh_ptr: taichi._lib.core.MeshPtr, element_type: MeshElementType, g2r_field: taichi.lang.field.ScalarField)¶
Bases:
taichi.lang.matrix.MatrixField
Taichi matrix field with SNode implementation.
- Parameters
vars (List[Expr]) – Field members.
n (Int) – Number of rows.
m (Int) – Number of columns.
- class taichi.lang.mesh.MeshElementField(mesh_instance, _type, attr_dict, field_dict, g2r_field)¶
- property keys(self)¶
- property members(self)¶
- property items(self)¶
- static make_getter(key)¶
- register_fields(self)¶
- get_field_members(self)¶
- copy_from(self, other)¶
- fill(self, val)¶
- initialize_host_accessors(self)¶
- get_member_field(self, key)¶
- from_numpy(self, array_dict)¶
- from_torch(self, array_dict)¶
- to_numpy(self)¶
- to_torch(self, device=None)¶
- class taichi.lang.mesh.MeshElement(_type, builder)¶
- SOA¶
- AOS¶
- place(self, members, reorder=False, needs_grad=False)¶
- build(self, mesh_instance, size, g2r_field)¶
- link(self, element)¶
- class taichi.lang.mesh.MeshInstance(_type)¶
- set_owned_offset(self, element_type: MeshElementType, owned_offset: taichi.lang.field.ScalarField)¶
- set_total_offset(self, element_type: MeshElementType, total_offset: taichi.lang.field.ScalarField)¶
- set_index_mapping(self, element_type: MeshElementType, conv_type: ConvType, mapping: taichi.lang.field.ScalarField)¶
- set_num_patches(self, num_patches: int)¶
- set_patch_max_element_num(self, element_type: MeshElementType, max_element_num: int)¶
- set_relation_fixed(self, rel_type: MeshRelationType, value: taichi.lang.field.ScalarField)¶
- set_relation_dynamic(self, rel_type: MeshRelationType, value: taichi.lang.field.ScalarField, offset: taichi.lang.field.ScalarField)¶
- add_mesh_attribute(self, element_type, snode, reorder_type)¶
- class taichi.lang.mesh.MeshMetadata(filename)¶
- class taichi.lang.mesh.MeshBuilder(topology)¶
- build(self, metadata: MeshMetadata)¶
- taichi.lang.mesh.TriMesh()¶
- taichi.lang.mesh.TetMesh()¶
- class taichi.lang.mesh.MeshElementFieldProxy(mesh: MeshInstance, element_type: MeshElementType, entry_expr: taichi.lang.impl.Expr)¶
- property ptr(self)¶
- property id(self)¶
- class taichi.lang.mesh.MeshRelationAccessProxy(mesh: MeshInstance, from_index: taichi.lang.impl.Expr, to_element_type: MeshElementType)¶
- property size(self)¶
- subscript(self, *indices)¶