tumcms / Open-Infra-Platform

This is the official repository of the open-source Open Infra Platform software (as of April 2020).
Other
47 stars 21 forks source link

IfcPolynomialCurve #539

Open Elvira2227 opened 2 years ago

Elvira2227 commented 2 years ago

In this pull request implementation was added for IfcPolynomialCurve. The following functions were added in CurveConverter.h:

  1. getPointOnCurve
  2. getDirectionOfCurve - here we need to implement additional code in covertIfcCurveSegment to calculate rotation around x,y axis and also rotation in 3D. Now we can only rotate around axis z.
  3. calculatePolynomialCurve - to calculate polynomial from coefficietnts

For explanation there is a screen shot of cubic curve with coefficientsX (0., 1., 0.) and coefficientsY (0., 0., 0.01, 0.).

image

Note: This is related to #524 Please see starting from commit 2b83b5b

Elvira2227 commented 2 years ago

There are several changes in the last commits cf59b36 and 28f6421.

Here is the implemented polycurve: image