forked from ProjectPhysX/FluidX3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shapes.hpp
24 lines (21 loc) · 2.16 KB
/
shapes.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "utilities.hpp"
bool sphere(const uint x, const uint y, const uint z, const float3& p, const float r);
bool ellipsoid(const uint x, const uint y, const uint z, const float3& p, const float3& r);
bool cube(const uint x, const uint y, const uint z, const float3& p, const float l);
bool cuboid(const uint x, const uint y, const uint z, const float3& p, const float3& l);
bool cylinder(const uint x, const uint y, const uint z, const float3& p, const float3& n, const float r);
bool cone(const uint x, const uint y, const uint z, const float3& p, const float3& n, const float r1, const float r2);
bool pipe(const uint x, const uint y, const uint z, const float3& p, const float3& n, const float r);
bool conepipe(const uint x, const uint y, const uint z, const float3& p, const float3& n, const float r1, const float r2);
bool triangle(const uint x, const uint y, const uint z, const float3& p0, const float3& p1, const float3& p2);
bool plane(const uint x, const uint y, const uint z, const float3& p, const float3& n);
bool torus_x(const uint x, const uint y, const uint z, const float3& p, const float r, const float R);
bool torus_y(const uint x, const uint y, const uint z, const float3& p, const float r, const float R);
bool torus_z(const uint x, const uint y, const uint z, const float3& p, const float r, const float R);
float sphere_plic(const uint x, const uint y, const uint z, const float3& p, const float r); // sphere with PLIC fill levels returned
float ellipsoid_plic(const uint x, const uint y, const uint z, const float3& p, const float3& r); // ellipsoid with PLIC fill levels returned
float cylinder_x_plic(const uint x, const uint y, const uint z, const float3& p, const float r, const float l); // bar with PLIC fill levels returned
float cylinder_y_plic(const uint x, const uint y, const uint z, const float3& p, const float r, const float l); // bar with PLIC fill levels returned
float cylinder_z_plic(const uint x, const uint y, const uint z, const float3& p, const float r, const float l); // bar with PLIC fill levels returned
float plane_plic(const uint x, const uint y, const uint z, const float3& p, const float3& n); // plane with PLIC fill levels returned