louisepb / TexGen

TexGen is a geometric textile modelling software package to be used for obtaining engineering properties of woven textiles and textile composites.
GNU General Public License v2.0
50 stars 28 forks source link

STEP export of binder yarns #28

Open louisepb opened 4 years ago

louisepb commented 4 years ago

Binder yarns don't export for default orthogonal weave Need to get debug version of opencascade?

louisepb commented 4 years ago

Problem is in CExporter::ConfineYarnsToDomain in call to BRepAlgoAPI_Common. This fails when the binder yarn is at an angle to the domain plane. Step output is fine when domain cuts binder on one of the sections closer to horizontal.

louisepb commented 4 years ago

The call to BRepAlgoAPI_Common works when the binder yarn is cut in the middle vertical section. The step export has a twist towards the end of the yarn which isn't present in the x-ray rendering (so not an up-vector issue). The same section points are fed to the openCascade functions to create the wires but the ordering seems to get reversed for the final few sections. Posted question on OpenCascade forum