Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

Solving for Intersections within a For Loop.

$
0
0

Hi MathCAD Community,

 

To start I will try and give some background to the problem:

 

I have imported some data points that represent two edge curves of a surface in Creo. Using Matricies I can rotate these data points by a given angle made up of Yaw and Pitch. I then project these rotated data points to the zero plane using a projection Matrix. Next I fit a function through the two sets of transformed data and using integrals I calculate the area between these curves.

 

Now that I have worked out how to do this by specifying the rotation angle I want to iterate through 180 degrees of rotation in Yaw and Pitch to find the orientation that provides the smallest area between the curves.

 

My problem is when I go to find the potential intersection points of the two curves (for defining integral limits) I use a solve block, which cannot be implemented within a for loop for iterating through angles...

 

If anyone could help me find a solution to this ASAP it would be greatly appreciated. I have attached my methodology for completing this without iterating through a For loop.

 

Dion


Viewing all articles
Browse latest Browse all 2936


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>