12#ifndef CScreenElementDef_H
13#define CScreenElementDef_H
16#include "SNetSectionData.h"
17#include "CNetElementDef.h"
18#include "CExceptions.h"
27 NODE_ON_EDGE_AB = 100,
28 NODE_ON_EDGE_BC = 101,
29 NODE_ON_EDGE_CA = 102,
30 NODE_NOT_ON_EDGE = -100
66 void DivideEdge(
int iNewNode,
int iNewElementID,
CScreenElementDef* pSNewPanel,
int iNodeNoOldPanel,
int iNodeNoNewPanel,
double dDivideAtDistance=0.5);
68 NodePosition NodesDefineEdge(
int aiNodes[2]);
71 bool Test(
bool bOk, std::string sMessage)
const;
72 bool Test(
int iIn1,
int iIn2,
bool bShouldBeEqual, std::string sArg1)
const;
73 bool Test(
double dIn1,
double dIn2,
bool bShouldBeEqual, std::string sArg1)
const;
74 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
Definition: CScreenElementDef.h:23
bool Check() const
Does the initialization and checking to make sure that the panel is ready for simulation.
double dRefineFactor
The refine factor of the panel.
Definition: CScreenElementDef.h:33
double FindLongestEdge(int aiNodes[2]) const
Finds the nodes connected to the longest edge of the panel.
CScreenElementDef()
Constructor.
double CalcLongestEdge() const
Calculates the longest edge length of the panel.
double CalcEdgeLength(int iEdgeIndex) const
Calculates the length of the specified edge.
unsigned short FindLongestEdge() const
Finds the longest edge of the panel.
bool PanelEdge2Nodes(unsigned short iEdge, int aiNodes[2]) const
Finds the global nodes connected to the specified edge.
double CalcLengthFactor() const
Calculates the largest length factor of the panel.
bool Panel2Triangles(int iNewElementID, CScreenElementDef *pSNewPanel)
Divides the panel in two triangular ones, if the panel is quadrangular.
bool Divide(int aiNodes[2], int iNewNode, int iNewElementID, CScreenElementDef **ppSNewPanel)
Divides the panel in two, if the panel has an edge between the two provided nodes.
Definition: NTrawlSpec.h:217