cbernardo / libIGES

Implementation of the IGESv5.3 specification
http://cbernardo.github.io/libIGES
GNU Lesser General Public License v2.1
58 stars 18 forks source link

Tutorial [error] curve is already closed #15

Open malstud opened 5 years ago

malstud commented 5 years ago

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():

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

cbernardo commented 5 years ago

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.