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;

} 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.

See Also

C_GetDiffractionOutput.