◆ RegroupNodes()
void BrawlLib.Modeling.PrimitiveGroup.RegroupNodes |
( |
| ) |
|
|
inline |
105 {
107 for (
int i = 0; i <
_headers.Count; i++)
108 {
109
111 {
112 if (!
_nodes.Contains(point.NodeID))
113 {
115 }
116 }
117 }
118 }
List< List< Facepoint > > _facePoints
Definition: Face.cs:134
List< ushort > _nodes
Definition: Face.cs:102
List< PrimitiveHeader > _headers
Definition: Face.cs:133
◆ SetNodeIds()
unsafe void BrawlLib.Modeling.PrimitiveGroup.SetNodeIds |
( |
VoidPtr |
primAddr | ) |
|
|
inline |
145 {
146 byte* grpAddr = (
byte*) (primAddr +
_offset);
148 {
150 }
151 }
uint _offset
Definition: Face.cs:137
List< NodeOffset > _nodeOffsets
Definition: Face.cs:140
Definition: BigEndianTypes.cs:192
◆ ToString()
override string BrawlLib.Modeling.PrimitiveGroup.ToString |
( |
| ) |
|
|
inline |
373 {
374 return $"Nodes: {_nodes.Count} - Primitives: {_headers.Count}";
375 }
◆ TryAdd()
220 {
221 if (p is PointTriangleStrip)
222 {
223 return TryAdd(p as PointTriangleStrip);
224 }
225
226 if (p is PointTriangle)
227 {
228 return TryAdd(p as PointTriangle);
229 }
230
231 if (p is PointLineStrip)
232 {
233 return TryAdd(p as PointLineStrip);
234 }
235
236 if (p is PointLine)
237 {
238 return TryAdd(p as PointLine);
239 }
240
241 if (p is FPoint)
242 {
243 return TryAdd(p as FPoint);
244 }
245
246 return false;
247 }
bool TryAdd(PrimitiveClass p)
Definition: Face.cs:219
◆ _facePoints
List<List<Facepoint> > BrawlLib.Modeling.PrimitiveGroup._facePoints = new List<List<Facepoint>>() |
◆ _headers
◆ _lines
◆ _linestrips
◆ _nodeOffsets
◆ _nodes
List<ushort> BrawlLib.Modeling.PrimitiveGroup._nodes = new List<ushort>() |
◆ _offset
uint BrawlLib.Modeling.PrimitiveGroup._offset |
◆ _points
List<FPoint> BrawlLib.Modeling.PrimitiveGroup._points = new List<FPoint>() |
◆ _triangles
◆ _tristrips
◆ LineHeader
◆ TriangleHeader
The documentation for this class was generated from the following file:
- BrawlLib/Modeling/Face.cs