qugar.reparam
Reparameterization module for QUGaR
Functions
|
Creates a reparameterized mesh for a given unfitted domain. |
Classes
|
A class to represent the unfitted domain raparameterization mesh wraps around a C++ object. |
- class qugar.reparam.UnfDomainReparamMesh(cpp_object: ReparamMesh_1_2 | ReparamMesh_2_2 | ReparamMesh_2_3 | ReparamMesh_3_3)[source]
Bases:
object
A class to represent the unfitted domain raparameterization mesh wraps around a C++ object.
Initializes the Reparam object with a given C++ ReparamMesh object.
- Parameters:
cpp_object (ReparamMesh) – An instance of a C++ ReparamMesh object, either 2D or 3D.
- ReparamMesh: TypeAlias = qugar.cpp.ReparamMesh_1_2 | qugar.cpp.ReparamMesh_2_2 | qugar.cpp.ReparamMesh_2_3 | qugar.cpp.ReparamMesh_3_3
- property cpp_object: ReparamMesh_1_2 | ReparamMesh_2_2 | ReparamMesh_2_3 | ReparamMesh_3_3
Returns the C++ object associated with this instance.
- Returns:
The C++ object underlying this instance.
- Return type:
ReparamMesh
- qugar.reparam.create_reparam_mesh(unf_domain: UnfittedDomain, n_pts_dir: int = 4, levelset: bool = False) UnfDomainReparamMesh [source]
Creates a reparameterized mesh for a given unfitted domain.
- Parameters:
unf_domain (UnfittedDomain) – The unfitted domain to be reparameterized.
n_pts_dir (int, optional) – The number of points in each direction. Must be greater than 1. Defaults to 4.
levelset (bool, optional) – Whether to create a levelset reparameterization (True) or a solid one (False). Defaults to False.
- Returns:
The reparameterized domain.
- Return type:
UnfDomainReparam