Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Project a curve made up of points in [XYZijk] format

#1
Hello

I would like to project a curve made up of points in [XYZijk] format onto a surface. The projection direction will be the Z direction of the points on the curve.

The instruction I am using is the following. What ProjectionType do I use?

virtual bool ProjectPoints (tMatrix2D * points,
ItemobjectProject,
int ProjectionType = PROJECTION_ALONG_NORMAL_RECALC
)

A greeting
#2
This function looks correct. Feel free to provide some sample code if you want us to help you troubleshoot or debug. Make sure you are using the latest version of RoboDK as well.

What issues do you have?

You'll find an example and more information about projection flags here:
//www.sinclairbody.com/doc/en/PythonAPI/exam...to-surface

Also, the example attached shows a related project in Python to project curves to an object using the ProjectPoints function. This allows you to project a curve to a surface.


Attached Files
.rdk Example-07.c-Script Curve Follow Custom.rdk(Size: 1.02 MB / Downloads: 299)




Users browsing this thread:
1 Guest(s)