MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetVertices

Method GetVertices

Source/Engine/Level/Actors/BoxBrush.cpp:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void BoxBrush::GetVertices(int32 surfaceIndex, Array<Vector3>& outputData) const
156{
157 auto scene = GetScene();
158 CHECK(scene);
159 CSG::SceneCSGData::SurfaceData surfaceData;
160 if (scene->CSGData.TryGetSurfaceData(GetBrushID(), surfaceIndex, surfaceData))
161 {
162 outputData.Add((Vector3*)surfaceData.Triangles.Get(), 3 * surfaceData.Triangles.Count());
163 }
164}
165
166void BoxBrush::Serialize(SerializeStream& stream, const void* otherObj)
167{

Callers

nothing calls this directly

Calls 5

GetSceneFunction · 0.85
TryGetSurfaceDataMethod · 0.80
AddMethod · 0.45
GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected