Code duplication of Convert_CompBezierCurvesToBSplineCurve and ShapeConstruct_CompBezierCurvesToBSplineCurve

Timo's picture

The code of Convert_CompBezierCurvesToBSplineCurve and ShapeConstruct_CompBezierCurvesToBSplineCurve is nearly the same. Looking at the history of both, the only difference seems to come from "0025256: Small optimization in Convert comp bezier to BSpline". Why are there these two classes? Shouldn't the ShapeConstruct class be better removed to avoid code duplication?

Regards

abv's picture

Issue 27234

Hello Timo,

You are right, these classes are duplicates (even if each contain some specific amendments made after separation). Thank you for spotting this! Classes from ShapeConstruct are not used inside OCCT; they shall be removed. I have registered issue #27234 for that.

Andrey

www.opencascade.com

Copyright 2011-2017
OPEN CASCADE SAS
Contact us