I'd like to back up my question a little bit, and make sure I'm not
overlooking other solutions.

I am drawing a wandering 3d line constructed of linesegments within a
(invisible) cube, and I'd like the parts of the line that stray
outside of the cube to be clipped. I'm going to be moving this
clipping cube around through the static field of lines, and I am not
sure how to do this efficiently without deleting and redrawing all the
lines at every update.

thanks,
Matt

On Jul 3, 3:52 am, Fabrice3D <[email protected]> wrote:
> Look at plane3d in core.geom.plane3d
> Some of the functions you probably are after, are in this class.
>
> Fabrice
>
> On Jul 3, 2009, at 1:42 AM, Li wrote:
>
> > I don't know any other way other than the pure maths way:
> >http://en.wikipedia.org/wiki/Line-plane_intersection
>
> > Of course that deals with and infinite plane and an infinite line,  
> > if you are looking for the intersection of a line segment and a  
> > confined plane, you would have to verify if the hypothetical point  
> > of intersection, if it exists, lies within the sets of points of  
> > each object.
>
> > You could also look up ray casting methods/algorithms to test if an  
> > infinite line collides with any of the plane's faces. I'm not sure  
> > if any part of Away3D currently implements this, or even if the  
> > methods are made externally accessible if existing.
>
> > Hope it helps,
> > Li

Reply via email to