Mesh Generators

tissue_forge.models.vertex.solver.create_quad_mesh(*args, **kwargs) std::vector< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > >,std::allocator< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > > > >

Populate the mesh with quadrilateral surfaces.

Requires an initialized solver.

Parameters:
  • stype (SurfaceType) – surface type

  • startPos (FVector3) – starting position

  • num_1 (int) – number of elements in the first direction

  • num_2 (int) – number of elements in the second direction

  • len_1 (float) – length of each element in the first direction

  • len_2 (float) – length of each element in the second direction

  • ax_1 (string) – axis name of the first direction (e.g., “x”)

  • ax_2 (string) – axis name of the second direction

Return type:

std::vector< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > >,std::allocator< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > > > >

Returns:

constructed surfaces

tissue_forge.models.vertex.solver.create_plpd_mesh(*args, **kwargs) std::vector< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > >,std::allocator< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > > > >

Populate the mesh with parallelepiped bodies.

Requires an initialized solver.

Parameters:
  • btype (BodyType) – body type

  • stype (SurfaceType) – surface type

  • startPos (FVector3) – starting position

  • num_1 (int) – number of elements in the first direction

  • num_2 (int) – number of elements in the second direction

  • num_3 (int) – number of elements in the third direction

  • len_1 (float) – length of each element in the first direction

  • len_2 (float) – length of each element in the second direction

  • len_3 (float) – length of each element in the third direction

  • ax_1 (string) – axis name of the first direction (e.g., “x”)

  • ax_2 (string) – axis name of the second direction

Return type:

std::vector< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > >,std::allocator< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > > > >

Returns:

constructed bodies

tissue_forge.models.vertex.solver.create_hex2d_mesh(*args, **kwargs) std::vector< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > >,std::allocator< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > > > >

Populate the mesh with hexagonal surfaces.

Requires an initialized solver.

Parameters:
  • stype (SurfaceType) – surface type

  • startPos (FVector3) – starting position

  • num_1 (int) – number of elements in the first direction

  • num_2 (int) – number of elements in the second direction

  • hexRad (float) – radius of hexagon vertices

  • ax_1 (string) – axis name of the first direction (e.g., “x”)

  • ax_2 (string) – axis name of the second direction

Return type:

std::vector< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > >,std::allocator< std::vector< TissueForge::models::vertex::SurfaceHandle,std::allocator< TissueForge::models::vertex::SurfaceHandle > > > >

Returns:

constructed surfaces

tissue_forge.models.vertex.solver.create_hex3d_mesh(*args, **kwargs) std::vector< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > >,std::allocator< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > > > >

Populate the mesh with bodies from extruded hexagonal surfaces.

Requires an initialized solver.

Surfaces are placed in the plane of the first and second directions, and extruded along the third direction.

Parameters:
  • btype (BodyType) – body type

  • stype (SurfaceType) – surface type

  • startPos (FVector3) – starting position

  • num_1 (int) – number of elements in the first direction

  • num_2 (int) – number of elements in the second direction

  • num_3 (int) – number of elements in the third directionnumber of elements in the third direction

  • hexRad (float) – radius of hexagon vertices

  • hex_height (float) – extrusion length per body

  • ax_1 (string) – axis name of the first direction (e.g., “x”)

  • ax_2 (string) – axis name of the second direction

Return type:

std::vector< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > >,std::allocator< std::vector< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > >,std::allocator< std::vector< TissueForge::models::vertex::BodyHandle,std::allocator< TissueForge::models::vertex::BodyHandle > > > > > >

Returns:

constructed bodies