TDiffractionPanelGeometry

The TDiffractionPanelGeometry data structure is contains geometry information for a diffraction panel.

typedef struct {

int ObjectId;

TPanel Vertices;

TVector Centroid;

TVector Normal;

double Area;

int MeshFilePanelIndex;

int PanelType;

} TDiffractionPanelGeometry;

Members

ObjectId

Identifies the object that owns the panel. A value of -1 identifies the damping lid, otherwise this is a zero based index into the list of included bodies.

Vertices

The coordinates of the 4 vertices of the panel. If the panel is a triangular panel then the coordinates of the final vertex (ie. Vertices[3]) are NAN.

Centroid

The coordinates of centroid of the panel.

Normal

The unit normal of the panel (pointing out of the water).

Area

The area of the panel.

MeshFilePanelIndex

Identifies the source data (in a mesh file) from which the panel is derived. Specifically, these are one-based indices into the panels that are imported from each mesh file. You can view the same data by selecting mesh file panel indices in the mesh view in OrcaWave.

PanelType

Identifies the type of panel. Can be one of: ptBody, ptDampingLid or ptDipole.

See Also

C_GetDiffractionOutput.