libIGES icon indicating copy to clipboard operation
libIGES copied to clipboard

Tutorial [error] curve is already closed

Open malstud opened this issue 7 years ago • 1 comments

Hello, I'm working on exporting geometry data as a .igs file. Though when I try to run the tutorial given in the directory, the code reports the following error once the third NURB-Curve shall be added to the compound...

.../cbernardo-libIGES-2a44fdc/src/entities/entity102.cpp:739:AddSegment():

  • [ERROR] curve is aready closed

The same error appears when I run my personal written code as I want to add a third NURB-Curve Segment. I'm aware that there is a condition (entity102.cpp l.231) in the source code that prohibits two consecutive entities 116,132. This does not refer to the tutorial case. Does anyone one might have an idea for the cause of this error? I really appreciate your answers

Best Regards

malstud avatar Sep 04 '18 11:09 malstud

I've rebuilt the tutorial and I do not see this problem. This should only happen if a 3D curve has actually been closed (last point = start point) and you attempt to add another segment to the curve. If the problem is with the unmodified tutorial then I will need more information to reproduce the problem.

cbernardo avatar Sep 09 '18 21:09 cbernardo