DiscussionsIssue archiveOCCT:Modeling Data

Archived issue #0033304

Modeling Data - Floating point signal when converting a B-spline curve to analytical form

Open CASCADEOCCT:Modeling Dataverified7 public notes

Search issues

Description

The static function ConicDefinition defined in the file GeomConvert_CurveToAnaCurve.cxx causes floating point exception, when calling sqrt with negative argument, when converting the attached B-spline curve to analytical form.

Steps to reproduce

binrestore Attachment 1 (BBREP) a
mkcurve c a
tocanon r c

#An exception was caught [revision removed] : Standard_NumericError: FLT INVALID OPERATION

Public activity

7 archived notes

Participants are labeled by their role within this record.

01Commenter 1
The file to reproduce. It has been also put in the model repository.
02Commenter 2
Attachment 1 (BBREP) (491 bytes)
03Commenter 1
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Tue Dec 27 22:19:11 2022 +0300

    0033304: Modeling Data - Floating point signal when converting a B-spline curve to analytical form
    
    Protect the static function ConicDefinition from calling sqrt with negative argument.
04Commenter 4
05Commenter 5
Branch CR33304 is ready for review.
06Commenter 2
No remarks.

Please integrate branch:
OCCT - CR33304
07Commenter 1
Branch [archived branch] has been deleted by Participant.

[revision removed]