Skip to content

OFFSET_SURFACE did not parse correctly #994

@tonyzhcom

Description

@tonyzhcom

Description

In my step model, the following statement was not parsed correctly

#92=ADVANCED_FACE('',(#155,#156),#157,.T.);
#157=OFFSET_SURFACE('',#288,20.0,.F.);
#288=(B_SPLINE_SURFACE(3,1,((#553,#554),(#555,#556),(#557,#558),(#559,#560),(#561,#562),(#563,#564),(#565,#566)),.UNSPECIFIED.,.T.,.F.,.F.)B_SPLINE_SURFACE_WITH_KNOTS((4,3,4),(2,2),(0.0,0.499999999999999,1.0),(0.0,1.0),.UNSPECIFIED.)RATIONAL_B_SPLINE_SURFACE(((1.0,1.0),(0.333333333333333,0.333333333333333),(0.333333333333333,0.333333333333333),(1.0,1.0),(0.333333333333333,0.333333333333333),(0.333333333333333,0.333333333333333),(1.0,1.0)))BOUNDED_SURFACE()REPRESENTATION_ITEM('')GEOMETRIC_REPRESENTATION_ITEM()SURFACE());

Add it and change it to the following way, it can be parsed

#92=ADVANCED_FACE('',(#155,#156),#288,.T.);
#288=(B_SPLINE_SURFACE(3,1,((#553,#554),(#555,#556),(#557,#558),(#559,#560),(#561,#562),(#563,#564),(#565,#566)),.UNSPECIFIED.,.T.,.F.,.F.)B_SPLINE_SURFACE_WITH_KNOTS((4,3,4),(2,2),(0.0,0.499999999999999,1.0),(0.0,1.0),.UNSPECIFIED.)RATIONAL_B_SPLINE_SURFACE(((1.0,1.0),(0.333333333333333,0.333333333333333),(0.333333333333333,0.333333333333333),(1.0,1.0),(0.333333333333333,0.333333333333333),(0.333333333333333,0.333333333333333),(1.0,1.0)))BOUNDED_SURFACE()REPRESENTATION_ITEM('')GEOMETRIC_REPRESENTATION_ITEM()SURFACE());`

So I guess the parsing of OFFSET_SURFACE may fail in some cases

Expected Behavior

Show this face

Actual Behavior

This face is not displayed

Sample Code or DRAW Tcl Script

none

Operating System

macOS

Compiler

Clang

Bitness

64-bit

OCCT Version

7.9

Additional Files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories2. BugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions