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

Method updateTesselation

radiantcore/patch/Patch.cpp:482–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void Patch::updateTesselation(bool force)
483{
484 // Only do something if the tesselation has actually changed
485 if (!_tesselationChanged && !force) return;
486
487 _tesselationChanged = false;
488
489 if (!isValid())
490 {
491 _mesh.clear();
492 _localAABB = AABB();
493 return;
494 }
495
496 // Run the tesselation code
497 _mesh.generate(_width, _height, _ctrlTransformed, subdivisionsFixed(), getSubdivisions(), _node.getRenderEntity());
498
499 updateAABB();
500
501 _node.onTesselationChanged();
502}
503
504void Patch::invertMatrix()
505{

Callers 9

revertTransformationMethod · 0.80
transformMethod · 0.80
transformComponentsMethod · 0.80
snaptoMethod · 0.80
snapComponentsMethod · 0.80
mergeComponentsWithMethod · 0.80
onPreRenderMethod · 0.80
getRenderIndicesMethod · 0.80

Calls 6

isValidFunction · 0.85
getRenderEntityMethod · 0.80
onTesselationChangedMethod · 0.80
AABBClass · 0.50
clearMethod · 0.45
generateMethod · 0.45

Tested by

no test coverage detected