12#ifndef CNetElementDef_H
13#define CNetElementDef_H
16#include "SNetSectionData.h"
17#include "CExceptions.h"
26 NODE_ON_EDGE_AB = 100,
27 NODE_ON_EDGE_BC = 101,
28 NODE_ON_EDGE_CA = 102,
29 NODE_NOT_ON_EDGE = -100
65 void DivideEdge(
int iNewNode,
int iNewElementID,
CNetElementDef* pSNewPanel,
int iNodeNoOldPanel,
int iNodeNoNewPanel,
double dDivideAtDistance=0.5);
67 NodePosition NodesDefineEdge(
int aiNodes[2]);
70 bool Test(
bool bOk, std::string sMessage)
const;
71 bool Test(
int iIn1,
int iIn2,
bool bShouldBeEqual, std::string sArg1)
const;
72 bool Test(
double dIn1,
double dIn2,
bool bShouldBeEqual, std::string sArg1)
const;
73 bool Test(std::string sIn1, std::string sIn2,
bool bShouldBeEqual, std::string sArg1)
const;
Class containing the description of a net panel and methods necessary for taking this over to triangu...
Definition: CNetElementDef.h:22
bool Divide(int aiNodes[2], int iNewNode, int iNewElementID, CNetElementDef **ppSNewPanel)
Divides the panel in two, if the panel has an edge between the two provided nodes.
bool PanelEdge2Nodes(unsigned short iEdge, int aiNodes[2]) const
Finds the global nodes connected to the specified edge.
double FindLongestEdge(int aiNodes[2]) const
Finds the nodes connected to the longest edge of the panel.
double CalcLengthFactor() const
Calculates the largest length factor of the panel.
bool Check() const
Does the initialization and checking to make sure that the panel is ready for simulation.
double CalcLongestEdge() const
Calculates the longest edge length of the panel.
bool Panel2Triangles(int iNewElementID, CNetElementDef *pSNewPanel)
Divides the panel in two triangular ones, if the panel is quadrangular.
double dRefineFactor
The refine factor of the panel.
Definition: CNetElementDef.h:32
CNetElementDef()
Constructor.
unsigned short FindLongestEdge() const
Finds the longest edge of the panel.
double CalcEdgeLength(int iEdgeIndex) const
Calculates the length of the specified edge.
Definition: SNetSectionData.h:11
Definition: NTrawlSpec.h:217