MCPcopy Create free account
hub / github.com/comaps/comaps / ResetGeometry

Method ResetGeometry

libs/indexer/feature.cpp:468–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void FeatureType::ResetGeometry()
469{
470 // Do not reset geometry for features created from MapObjects.
471 if (!m_loadInfo)
472 return;
473
474 m_points.clear();
475 m_triangles.clear();
476
477 if (GetGeomType() != GeomType::Point)
478 m_limitRect = m2::RectD();
479
480 m_parsed.m_relations = m_parsed.m_header2 = m_parsed.m_points = m_parsed.m_triangles = false;
481 m_offsets.m_pts.clear();
482 m_offsets.m_trg.clear();
483 m_ptsSimpMask = 0;
484}
485
486void FeatureType::ParseGeometry(int scale)
487{

Callers 3

GetIntersectionFunction · 0.45
ProcessLineStyleMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected