NetDEM v1.0
|
The Cork namespace contains various static methods for performing mesh operations. More...
#include <cork_wrapper.hpp>
Static Public Member Functions | |
static void | MeshIntersect (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab, VecXT< int > *const jab) |
Compute the intersection between two input meshes va and vb. | |
static void | MeshUnion (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab, VecXT< int > *const jab) |
Compute the union of two input meshes va and vb. | |
static void | MeshDifference (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab, VecXT< int > *const jab) |
Compute the difference of two input meshes va and vb. | |
static void | MeshXor (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab, VecXT< int > *const jab) |
Compute the exclusive-or of two input meshes va and vb. | |
static void | MeshIntersect (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab) |
Compute the intersection between two input meshes va and vb. | |
static void | MeshUnion (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab) |
Compute the union of two input meshes va and vb. | |
static void | MeshDifference (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab) |
Compute the difference of two input meshes va and vb. | |
static void | MeshXor (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, const VecXT< Vec3d > &vb, const VecXT< Vec3i > &fb, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab) |
Compute the exclusive-or of two input meshes va and vb. | |
static void | MeshIntersect (const VecXT< Vec3d > &va, const VecXT< Vec3i > &fa, double dist_pc_to_plane, Vec3d const &dir_n, VecXT< Vec3d > *const vab, VecXT< Vec3i > *const fab, VecXT< int > *const jab) |
Compute the intersection between an input mesh va and a plane defined by a distance and normal vector. | |
The Cork namespace contains various static methods for performing mesh operations.
|
static |
Compute the difference of two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
|
static |
Compute the difference of two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
[out] | jab | Output indices of vertices in the difference of the two input meshes |
|
static |
Compute the intersection between two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
|
static |
Compute the intersection between two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
[out] | jab | Output indices of vertices in the intersection of the two input meshes |
|
static |
Compute the intersection between an input mesh va and a plane defined by a distance and normal vector.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | dist_pc_to_plane | Distance from plane to point cloud |
[in] | dir_n | Normal vector of plane |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
[out] | jab | Output indices of vertices in the intersection of the input mesh and the plane |
|
static |
Compute the union of two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
|
static |
Compute the union of two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
[out] | jab | Output indices of vertices in the union of the two input meshes |
|
static |
Compute the exclusive-or of two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
|
static |
Compute the exclusive-or of two input meshes va and vb.
[in] | va | Input vertices of mesh A |
[in] | fa | Input faces of mesh A |
[in] | vb | Input vertices of mesh B |
[in] | fb | Input faces of mesh B |
[out] | vab | Output vertices of resulting mesh |
[out] | fab | Output faces of resulting mesh |
[out] | jab | Output indices of vertices in the exclusive-or of the two input meshes |