mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 17:30:35 +05:00
patch for crash
This commit is contained in:
parent
227f211520
commit
6dc5124449
@ -35,12 +35,16 @@ Handle(TColgp_HArray1OfPnt) CurveCreator_Section::GetDifferentPoints( int theDim
|
|||||||
Handle(TColgp_HArray1OfPnt) points;
|
Handle(TColgp_HArray1OfPnt) points;
|
||||||
|
|
||||||
std::vector<gp_Pnt> aTmpPoints;
|
std::vector<gp_Pnt> aTmpPoints;
|
||||||
|
|
||||||
|
if( myPoints.size() > 0 )
|
||||||
|
{
|
||||||
CurveCreator::Coordinates::const_iterator aPIt = myPoints.begin();
|
CurveCreator::Coordinates::const_iterator aPIt = myPoints.begin();
|
||||||
CurveCreator::Coordinates::const_iterator aPItLast = myPoints.end();
|
CurveCreator::Coordinates::const_iterator aPItLast = myPoints.end();
|
||||||
const gp_Pnt aFirstPoint(
|
const gp_Pnt aFirstPoint(
|
||||||
*aPIt, *(aPIt + 1), (theDimension == 2) ? 0 : *(aPIt + 2));
|
*aPIt, *(aPIt + 1), (theDimension == 2) ? 0 : *(aPIt + 2));
|
||||||
gp_Pnt aPoint = aFirstPoint;
|
gp_Pnt aPoint = aFirstPoint;
|
||||||
aTmpPoints.push_back(aPoint);
|
aTmpPoints.push_back(aPoint);
|
||||||
|
}
|
||||||
|
|
||||||
for (; aPIt != aPItLast; aPIt += theDimension)
|
for (; aPIt != aPItLast; aPIt += theDimension)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user