H2Lib
3.0
|
Representation of a surface. More...
Data Structures | |
struct | _macrosurface3d |
Representation of a parametrized surface. More... | |
Typedefs | |
typedef struct _macrosurface3d | macrosurface3d |
Representation of a parametrized surface. | |
typedef macrosurface3d * | pmacrosurface3d |
Pointer to a macrosurface3d object. | |
typedef const macrosurface3d * | pcmacrosurface3d |
Pointer to a constant macrosurface3d object. | |
Representation of a surface.
The macrosurface3d class is used to represent piecewise parametrized surfaces in three-dimensional space. These representations can be used to construct surface3d meshes for boundary element discretizations.
psurface3d build_from_macrosurface3d_surface3d | ( | pcmacrosurface3d | mg, |
uint | split | ||
) |
Create a triangular mesh from a macrosurface3d object.
Each triangle in mg
is refined by splitting its edges into split
parts and connecting the vertices to obtain split*split
plane triangles for each parametrized triangle. The resulting mesh is returned in a surface3d object.
mg | macrosurface3d representation of the surface. |
split | Number of edge refinements. |
psurface3d build_interactive_surface3d | ( | ) |
void del_macrosurface3d | ( | pmacrosurface3d | mg | ) |
Delete a macrosurface3d object.
mg | Object to be deleted. |
pmacrosurface3d new_cube_macrosurface3d | ( | ) |
Creates a new macrosurface3d object for a unit cube.
Creates a new macrosurface3d object for a cuboid.
The cuboid is described as
ax | Minimal extend in x-direction. |
bx | Maximal extend in x-direction. |
ay | Minimal extend in y-direction. |
by | Maximal extend in y-direction. |
az | Minimal extend in z-direction. |
bz | Maximal extend in z-direction. |
pmacrosurface3d new_cylinder_macrosurface3d | ( | ) |
Create a macrosurface3d object for a cylinder.
pmacrosurface3d new_macrosurface3d | ( | uint | vertices, |
uint | edges, | ||
uint | triangles | ||
) |
Create a macrosurface3d object.
vertices | Number of vertices. |
edges | Number of edges. |
triangles | Number of triangles. |
pmacrosurface3d new_parabolic_mirror_macrosurface3d | ( | ) |
Creates a new macrosurface3d object for a parabolic mirror.
The geometry is derived from new_sphere_macrosurface3d by deforming half of the sphere parabolically towards the other have of the geometry.
pmacrosurface3d new_sphere_macrosurface3d | ( | ) |
Create a macrosurface3d object for the unit sphere.