Dear ejmahler
Many thanks for SplineLibrary write by QT.
Cloud you add some function for SplineLibrary?
Exm as below.
function no. list
s1850 - Find all the intersections between a curve and a plane (if curve dimension and dim = 3) or a curve and a line (if curve dimension and dim = 2).
s1240 - Compute the length of a curve. The length calculated will not deviate more than epsge divided by the calculated length, from the real length of the curve.
s1364 - To check if a curve is closed, i.e. test if the distance between the end points of the curve is less than a given tolerance.
s1363 - To pick the parameter range of a curve.
s1241 - To calculate the area between a 2D curve and a 2D point. When the curve is rotating counter-clockwise around the point, the area contribution is positive. When the curve is rotating clockwise around the point, the area contribution is negative. If the curve is closed or periodic, the area calculated is independent of where the point is situated. The area is calculated exactly for B-spline curves, for NURBS the result is an approximation. This routine will only perform if the order of the curve is less than 7 (can easily be extended).
s1243 - To calculate the weight point and rotational momentum of an area between a 2D curve and a 2D point. The area is also calculated. When the curve is rotating counter-clockwise around the point, the area contribution is positive. When the curve is rotating clockwise around the point, the area contribution is negative. OBSERVE: FOR CALCULATION OF AREA ONLY, USE s1241().
Above functions is provided in project https://github.com/SINTEF-Geometry/SISL .
Now, i am using SISL.
Hope SplineLibrary will have above functions as QT is a better tool.
Dear ejmahler Many thanks for SplineLibrary write by QT. Cloud you add some function for SplineLibrary? Exm as below. function no. list s1850 - Find all the intersections between a curve and a plane (if curve dimension and dim = 3) or a curve and a line (if curve dimension and dim = 2). s1240 - Compute the length of a curve. The length calculated will not deviate more than epsge divided by the calculated length, from the real length of the curve. s1364 - To check if a curve is closed, i.e. test if the distance between the end points of the curve is less than a given tolerance. s1363 - To pick the parameter range of a curve. s1241 - To calculate the area between a 2D curve and a 2D point. When the curve is rotating counter-clockwise around the point, the area contribution is positive. When the curve is rotating clockwise around the point, the area contribution is negative. If the curve is closed or periodic, the area calculated is independent of where the point is situated. The area is calculated exactly for B-spline curves, for NURBS the result is an approximation. This routine will only perform if the order of the curve is less than 7 (can easily be extended). s1243 - To calculate the weight point and rotational momentum of an area between a 2D curve and a 2D point. The area is also calculated. When the curve is rotating counter-clockwise around the point, the area contribution is positive. When the curve is rotating clockwise around the point, the area contribution is negative. OBSERVE: FOR CALCULATION OF AREA ONLY, USE s1241().
Above functions is provided in project https://github.com/SINTEF-Geometry/SISL . Now, i am using SISL. Hope SplineLibrary will have above functions as QT is a better tool.
best regards, jeff