Resolved issue #845. Defining a "closed" internal path.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-07 17:59:21 +03:00
parent b42664ce80
commit f027d92a4c
3 changed files with 5 additions and 6 deletions

View File

@ -61,10 +61,9 @@ void VisToolSpecialPoint::RefreshGeometry()
{ {
if (object1Id > NULL_ID) if (object1Id > NULL_ID)
{ {
const QSharedPointer<VPointF> point = Visualization::data->GeometricObject<VPointF>(object1Id); // Keep first, you can hide only objects those have shape
m_point->RefreshPointGeometry(*Visualization::data->GeometricObject<VPointF>(object1Id));
m_point->SetOnlyPoint(mode == Mode::Creation); m_point->SetOnlyPoint(mode == Mode::Creation);
m_point->RefreshPointGeometry(*point);
m_point->setVisible(true); m_point->setVisible(true);
} }
} }

View File

@ -66,9 +66,9 @@ void VisPieceSpecialPoints::RefreshGeometry()
for (int i = 0; i < m_spoints.size(); ++i) for (int i = 0; i < m_spoints.size(); ++i)
{ {
VSimplePoint *point = GetPoint(static_cast<quint32>(i), supportColor); VSimplePoint *point = GetPoint(static_cast<quint32>(i), supportColor);
// Keep first, you can hide only objects those have shape
point->RefreshPointGeometry(*Visualization::data->GeometricObject<VPointF>(m_spoints.at(i)));
point->SetOnlyPoint(false); point->SetOnlyPoint(false);
const QSharedPointer<VPointF> p = Visualization::data->GeometricObject<VPointF>(m_spoints.at(i));
point->RefreshPointGeometry(*p);
point->setVisible(true); point->setVisible(true);
if (m_showRect) if (m_showRect)

View File

@ -57,8 +57,8 @@ void VisToolPiecePath::RefreshGeometry()
for (int i = 0; i < nodes.size(); ++i) for (int i = 0; i < nodes.size(); ++i)
{ {
VSimplePoint *point = GetPoint(static_cast<quint32>(i), supportColor); VSimplePoint *point = GetPoint(static_cast<quint32>(i), supportColor);
point->RefreshPointGeometry(nodes.at(i)); // Keep first, you can hide only objects those have shape
point->SetOnlyPoint(mode == Mode::Creation); point->SetOnlyPoint(mode == Mode::Creation);
point->RefreshPointGeometry(nodes.at(i));
point->setVisible(true); point->setVisible(true);
} }