CartBoxZone 3-dimension. More...
#include <CartBoxZone.hpp>
Public Member Functions | |
CartBoxZone () | |
default Construct a new Hex Zone object More... | |
CartBoxZone (const int rk, std::vector< Point< 3 >> points) | |
Construct a new Hex Zone by points vector list. More... | |
CartBoxZone (const int rk, std::vector< std::vector< double >> points) | |
Construct a new Hex Zone object by points vector list. More... | |
CartBoxZone (const int rk) | |
Construct a new Hex Zone object. More... | |
void | SetNode (int i, Point< 3 > &point) |
Set the Node. More... | |
void | SetNodes (std::vector< Point< 3 >> points) |
Set the Nodes by a point vector list. More... | |
void | SetNodes (std::vector< std::vector< double >> points) |
Set the Nodes by a point vector list. More... | |
int | GetNodeSize () |
Get the size of nodes. More... | |
bool | IsInPlane (int ind0, int ind1, int ind2, const double p[]) |
judge which side of plane the points locate More... | |
virtual bool | IsInZone (const double p[]) |
judge whether the point is inside or outside of the zone More... | |
![]() | |
virtual bool | IsInVirtualZone (const double p[], const double r)=0 |
virtual bool | IsInZoneWithExtendWidth (const double p[], const double r[])=0 |
Public Attributes | |
Point< 3 > | node [8] |
![]() | |
int | rank |
CartBoxZone 3-dimension.
^ y | 3_________________2/| /| / | / | 7/__|_____________6/ | | 0|_____________|___|1---—> x | / | / | / | / |/_______________|/ 4 5 |/_ z
|
inline |
default Construct a new Hex Zone object
|
inline |
Construct a new Hex Zone by points vector list.
rk | which rank, when use mpi |
points |
References compgeo::ZoneBase::rank.
|
inline |
Construct a new Hex Zone object by points vector list.
rk | which rank, when use mpi |
points |
References compgeo::ZoneBase::rank.
|
inline |
Construct a new Hex Zone object.
rk | which rank, when use mpi |
References compgeo::ZoneBase::rank.
|
inline |
Get the size of nodes.
|
inline |
judge which side of plane the points locate
schematic ind2 3_________________2 | |
+ P |
---|
_________________ |
0 1 ind0 ind1
V0 = nodes(ind1)- nodes(ind0); V1 = nodes(ind2)- nodes(ind0); P = nodes(p) - nodes(ind0) n = V0 x V1 (cross product) if p \cdot n >0, inside if p \cdot n <0, outside
ind0 | node number |
ind1 | node number |
ind2 | node number |
p | position of points |
References compgeo::Point< N_dim >::pos.
|
inlinevirtual |
judge whether the point is inside or outside of the zone
p |
Implements compgeo::ZoneBase.
|
inline |
Set the Node.
i | which node |
point |
|
inline |
Set the Nodes by a point vector list.
points |
|
inline |
Set the Nodes by a point vector list.
points |
References compgeo::Point< N_dim >::SetPos().
Point<3> compgeo::CartBoxZone< 3 >::node[8] |