I can't say one way or another as your code which does that work is not 
visible in the example.  However, computing intersection from the 2D 
projection should work.  Check your math and also make sure your values are 
all described in the same coordinate system.

Although it would be more expensive, you could do a raycast along the edge 
from first vertex towards it's second vertex and see if it hits the plane 
defined by the slicing plane.  Basically a line-plane intersection test. 
You would only do this for edges which have already been verified as 
intersecting the slice plane from the 2D projection test.

Keep working on the 2D intersection test.  It should work.

Matt



Date: Sat, 20 May 2017 22:11:53 +0300
From: Andrew Prostrelov <[email protected]>
Subject: Re: Another rip question
To: "Official Softimage Users Mailing List.
https://groups.google.com/forum/#!forum/xsi_list";

Ok. I tryed method with a projection on a viewplane.
It calculate cut edges right and fast.
But i stuck with a cut edge intersection coordintaes.
Here is a code: http://c2n.me/3KAWXF5
In short words:
Project edge to viewplane (2D space). Construct CLine representation of
projected edge.
Construct CLine representation of drag line (or cut line) and project it
also on a viewplane.
Get intersection between this 2D Cline representations.
Get Parameter value of this 2D intersection coord.
Get via this Parameter value of 2D intersection a 3D intersection (build
Cline representation of edge in world space coords and get coord from 2D
Parameter value).
But unfortunatelly this method gave a cut line distortions. I guess
Parameter value that calculated in 2D space shouldn't be used for 3D space.
How should i get edges intersection coordinates ? 


------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to