MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / StaticModel

Method StaticModel

radiantcore/model/StaticModel.cpp:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16{
17
18StaticModel::StaticModel(const std::vector<StaticModelSurfacePtr>& surfaces) :
19 _scaleTransformed(1, 1, 1),
20 _scale(1, 1, 1),
21 _undoStateSaver(nullptr)
22{
23 for (const auto& surface : surfaces)
24 {
25 auto& inserted = _surfaces.emplace_back(surface);
26
27 // Extend the model AABB to include each surface's AABB
28 _localAABB.includeAABB(inserted.surface->getAABB());
29 }
30}
31
32StaticModel::StaticModel(const StaticModel& other) :
33 _surfaces(other._surfaces.size()),

Callers

nothing calls this directly

Calls 5

includeAABBMethod · 0.80
getAABBMethod · 0.80
getDefaultMaterialMethod · 0.80
sizeMethod · 0.45
setActiveMaterialMethod · 0.45

Tested by

no test coverage detected