Skip to content
Permalink
Browse files

allow to customize convertToCurves parameters for tracing curves

  • Loading branch information
olivierdalang committed Jul 15, 2020
1 parent bf7d746 commit f9ba8cdee904edf7248f10de7e28531cf9e10c1f
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/qgsmaptoolcapture.cpp
@@ -318,7 +318,10 @@ bool QgsMapToolCapture::tracingAddVertex( const QgsPointXY &point )
if ( capabilities().testFlag( QgsMapToolCapture::Capability::SupportsCurves ) && vlayer->dataProvider()->capabilities().testFlag( QgsVectorDataProvider::Capability::CircularGeometries ) )
{
QgsGeometry linear = QgsGeometry( mCaptureCurve.segmentize() );
QgsGeometry curved = linear.convertToCurves();
QgsGeometry curved = linear.convertToCurves(
settings.value( QStringLiteral( "/qgis/digitizing/convert_to_curve_angle_tolerance" ), 1e-6 ).toDouble(),
settings.value( QStringLiteral( "/qgis/digitizing/convert_to_curve_distance_tolerance" ), 1e-6 ).toDouble()
);
mCaptureCurve = *qgsgeometry_cast<QgsCompoundCurve *>( curved.constGet() );
}
}

0 comments on commit f9ba8cd

Please sign in to comment.
You can’t perform that action at this time.