Isle
Loading...
Searching...
No Matches
legoedge.h
Go to the documentation of this file.
1#ifndef __LEGOEDGE_H
2#define __LEGOEDGE_H
3
4#include "misc/legotypes.h"
5
6class LegoWEEdge;
7class Vector3;
8
9// VTABLE: LEGO1 0x100db7b8
10// SIZE 0x24
11
16struct LegoEdge {
20 LegoEdge();
21
25 virtual ~LegoEdge(); // vtable+0x00
26
33
40
47 Vector3* CWVertex(LegoWEEdge& p_face);
48
56
65
71
77
82 Vector3* GetPointA() { return m_pointA; }
83
88 Vector3* GetPointB() { return m_pointB; }
89
90 // SYNTHETIC: LEGO1 0x1009a4a0
91 // LegoEdge::`scalar deleting destructor'
92
98
104
108 LegoEdge* m_ccwA; // 0x0c
109
113 LegoEdge* m_cwA; // 0x10
114
118 LegoEdge* m_ccwB; // 0x14
119
123 LegoEdge* m_cwB; // 0x18
124
129
134};
135
136#endif // __LEGOEDGE_H
[AI] Represents a face (polygon) composed of a list of edges in the LEGO Island world engine.
Definition: legoweedge.h:17
[AI] 3D vector class, providing vector and cross-product operations in 3D space.
Definition: vector.h:249
[AI] Defines basic fixed-width data types and platform-neutral constants for LEGO Island codebase.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
Definition: legotypes.h:101
[AI] Represents an edge in the LEGO world geometry graph.
Definition: legoedge.h:16
LegoEdge * m_ccwB
[AI] Next edge (counterclockwise) around face B.
Definition: legoedge.h:118
LegoWEEdge * m_faceA
[AI] Pointer to the first face sharing this edge.
Definition: legoedge.h:97
virtual ~LegoEdge()
[AI] Destructor.
Definition: legoedge.cpp:22
LegoEdge * m_cwB
[AI] Next edge (clockwise) around face B.
Definition: legoedge.h:123
Vector3 * CWVertex(LegoWEEdge &p_face)
[AI] Returns the "clockwise" endpoint of this edge with respect to a given face.
Definition: legoedge.cpp:56
LegoEdge()
[AI] Constructs a LegoEdge with all members initialized to nullptr.
Definition: legoedge.cpp:9
LegoWEEdge * m_faceB
[AI] Pointer to the second face sharing this edge.
Definition: legoedge.h:103
Vector3 * GetPointA()
[AI] Gets the first endpoint (A) of the edge.
Definition: legoedge.h:82
LegoEdge * GetCounterclockwiseEdge(LegoWEEdge &p_face)
[AI] Returns the counterclockwise adjacent edge relative to the given face.
Definition: legoedge.cpp:41
Vector3 * m_pointB
[AI] The second endpoint of the edge.
Definition: legoedge.h:133
LegoWEEdge * GetFaceB()
[AI] Gets the second face (B) using this edge.
Definition: legoedge.h:76
LegoEdge * GetClockwiseEdge(LegoWEEdge &p_face)
[AI] Returns the clockwise adjacent edge relative to the given face.
Definition: legoedge.cpp:27
LegoEdge * m_ccwA
[AI] Next edge (counterclockwise) around face A.
Definition: legoedge.h:108
Vector3 * GetPointB()
[AI] Gets the second endpoint (B) of the edge.
Definition: legoedge.h:88
LegoEdge * m_cwA
[AI] Next edge (clockwise) around face A.
Definition: legoedge.h:113
LegoWEEdge * GetFaceA()
[AI] Gets the first face (A) using this edge.
Definition: legoedge.h:70
LegoResult FUN_1002ddc0(LegoWEEdge &p_face, Vector3 &p_point)
[AI] Performs an, as yet, unknown operation using the given face and point.
Vector3 * m_pointA
[AI] The first endpoint of the edge.
Definition: legoedge.h:128
Vector3 * CCWVertex(LegoWEEdge &p_face)
[AI] Returns the "counterclockwise" endpoint of this edge with respect to a given face.
Definition: legoedge.cpp:69