| 153 | } |
| 154 | |
| 155 | void 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 | |
| 166 | void BoxBrush::Serialize(SerializeStream& stream, const void* otherObj) |
| 167 | { |
nothing calls this directly
no test coverage detected