meshed_reuleaux_tetrahedron

Function to compute a meshed Reuleaux tetrahedron.

Author & support : nicolas.douillet (at) free.fr, 2017-2020.

Contents

Syntax

meshed_reuleaux_tetrahedron;

meshed_reuleaux_tetrahedron(sample_step);

meshed_reuleaux_tetrahedron(sample_step, shape);

meshed_reuleaux_tetrahedron(sample_step, shape, option_display);

[M, T] = meshed_reuleaux_tetrahedron(sample_step, shape, option_display);

Description

meshed_reuleaux_tetrahedron computes and displays the meshed Reuleaux tetrahedron included in the unitary sphere, and which each edge is sampled in 32.

meshed_reuleaux_tetrahedron(sample_step) uses sample_step steps.

meshed_reuleaux_tetrahedron(sample_step, shape) adds a shape option to the tetrahedron, the 'regular' version, or quadratic 2 'inflated' version.

meshed_reuleaux_tetrahedron(sample_step, shape, option_display) displays the result when option_display is logical true, and doesn't when it is logical false.

[M, T] = meshed_reuleaux_tetrahedron(sample_step, shape, option_display) stores vertices coordinates in the array M, and the triplet list in the array T.

See also

mesh | trimesh

Input arguments

- sample_step : positive integer scalar, power of 2.

- shape : character string in the set {*'regular','inflated'}. Case insensitive.

- option_display : logical *true (1) / false (0).

Output arguments

    [ |  |  |]
- M [Mx My Mz] : real matrix double, the point set. Size = [nb_vertices,3].
    [ |  |  |]
    [ |  |  |]
- T [T1 T2 T3] : positive integer matrix double, the triangulation. Size = [nb_triangles,3].
    [ |  |  |]

Example #1

Standard meshed Reuleaux tetrahedron, included in the unitary sphere, and which each edge is divided into 32 samples.

meshed_reuleaux_tetrahedron;

Example #2

'Inflated' meshed Reuleaux tetrahedron, and which each edge is divided into 8 samples, display ON. Radius size is then increased to 9.

[M,T] = meshed_reuleaux_tetrahedron(8, 'inflated', true);
M = 9*M;