News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Plane Snap

Started by Dr PR, February 03, 2014, 11:08:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Well fwiw, I agree with Phil's argument - or a version of that argument , i.e. that a complex surface is more than a triangle or a bent qualdrilateral for that matter.   Let's assume there could well be multiple elements involved (compare a sculptor making multiple chisel marks), and the normal has to somehow "average" those chisel-marks. 

I attach similar effects of trying to draw a normal to a surface from a point WITHIN that surface. 
http://forum.designcad.com/index.php?topic=5002.0

The circular intersection between the hyperbolic paraboloid and the small sphere centred on that point has been drawn ( granted, it is a subjective judgment) to give "best fit".

Then I drew the cone on that circle, and that gave me the normal.   (See reply #2)
As I say, FWIW.
IMO, It will never be perfect because delta y will never be dy :)  (talking calculus now)
Different story for a single plane of course. 
cheers
sam 

prl

#31
Quote from: Dr PR on February 07, 2014, 09:06:09 PM
The grid is just an imperfect representation of the complex curved surface we want to model.

Phil, Sam.  Of course and you are are pinning your hopes on some mysterious and unverifiable rendering code that you assume further subdivides the improper planar rectangular region into smaller planar facets in order to determine the surface normal at some point.  Hence you assume the surface normal generated using plane snap is correct? 

But yet when you do anything with that surface like use it to slice a solid, you will get what I have demonstrated.  I guess you will need to put in the mathematical effort to demonstrate it (F7 to a grid) is correct.  I've shown my arguments to the contrary.

By the way, SketchUp is mathematically honest about the same grid and yet it can also show the surface as smooth.

prl

Quote from: Dr PR on February 07, 2014, 09:41:57 AM
With a curved surface you can have multiple perpendiculars from a single point

I've been wondering about this statement.  Doesn't seem correct.   Maybe you can post an example pic.

prl

Quote from: samdavo on February 09, 2014, 12:03:49 AM
I attach similar effects of trying to draw a normal to a surface from a point WITHIN that surface. 
http://forum.designcad.com/index.php?topic=5002.0

Yes, I remember.  Your work was based on the "good enough" method.    I enjoyed your model, a pleasant distraction for rendering too.

Dr PR

prl,

A definite yes and no. In most cases you will not have multiple perpendiculars to a surface from a single point.

1. First you must realize that it is not actually possible to draw a perpendicular to a curve - only to the tangent to a curve (the one exception is when the radius of the curve is infinite - so the curve is essentially a straight line).

2. Whether or not you can have multiple "perpendiculars" to a surface from a single point above the surface depends upon the curvature of the surface.

3. If the curve is concave (cup shaped) with respect to a point you may have multiple perpendiculars to tangents to the curve from a single point. In this case the point is "inside" the curve.

a. In the image below the curve on the left side is a circular arc (part of a circle, the locus of allpoints equidistant from a single point). Point C is at the center of the arc, and has perpendiculars to the two tangent lines T. In this case there are an infinite number of perpendiculars/tangents.

b. If the point is anywhere but the center of the arc you will have only one perpendicular to a tangent to the curve.

c. The example on the right in the image is a parabola (the locus of all points equidistant from a point and a line). As you can see you can have only one perpendicular to the curve from a single point.

4. If the curve is convex (dome shaped) with respect to the point you can have only one perpendicular to the curve from the point. In this case the point is "outside" the curve.

****

5. Now it gets complicated. The above examples apply ONLY to 3D surfaces that are symmetrical about an axis. Imagine the arc or parabola rotated about the Y axis in the drawing.

a. If a point is above a "dome" on the surface (outside) it will have only one perpendicular, to the closest point on the surface.

However, if the overall surface folds back toward the point there may be other perpendiculars from the point to the surface, and some may be equal in length or shorter than the first perpendicular. I don't think this can happen within a single  DesignCAD grid facet.

b. If a point is inside a "cup" on the surface it may have multiple perpendiculars to the surface.

Imagine a surface that has a circular arc cross section along the X axis and a parabolic cross section along the Z axis with "up" along the Y axis. In this case there can be multiple perpendiculars along the X axis if the point is at the center of the arc, but only one perpendicular along the Z axis.

Now imagine a surface with two parabolic curvatures, but where the axes of the parabolas are not the same. It is possible for two perpendiculars to exist to the surface from one point - one to each parabolic cross section. All that is necessary is for the axes of the parabolas to intersect. From the intersection point there will be two perpendiculars. This could happen within a single DesignCAD grid facet.

****

So, to make a long story longer, it is possible that there may be two perpendiculars to a DesignCAD surface, and possibly two from a point to a single grid facet.

But you can't say that there will always be more than one perpendicular to any grid facet. I stand corrected.

Phil
DesignCAD user since 1987

prl

#35
Quote from: Dr PR on February 09, 2014, 10:41:53 AM
A definite yes and no. In most cases you will not have multiple perpendiculars to a surface from a single point.

I read your original statement to read that from a point on a surface, there could be multiple surface normals. Apparently you meant it differently.  Normals passing through points or the same point not on the surface isn't a sticking point for me.

F7 if it were to be working would need to pull three points from the grid surface, or interpolate 3 points from the grid surface to create a mathematical plane and then find the normal to that plane which also happens to pass through the 4th point not on the surface. That is the definition of a "plane" snap.




Dr PR

prl,

I agree.

However, you can have two perpendiculars from points not on a surface to a single point on the surface - one on each side of the surface. They will both be on the same normal.

Ideally you would find the plane tangent to the surface that is closest to the point not in the plane. Since there can be an infinite number of tangent planes this method is not the best solution.

Phil
DesignCAD user since 1987

Dr PR

prl,

On second thought it might be possible to have two normals to a curved surface from a single point on the surface. See the attached image. It shows a blue circular arc and a red parabola that intersect. Imagine a surface that passes through both the arc and parabola.

On the blue circular arc there is a normal from the center C to the blue point P.

At the point where the normal passes through the arc the red parabola also passes through. It is at an angle that allows an entirely different normal from the focus F to the red point P.

A consequence of the way I drew this is that the normal (green) from point F to the blue tangent to the arc does not pass through the point where the arc and parabola cross, but the normal from point C (blue/green) is perpendicular to both tangents (or the plane defined by the two tangents).

For my money CP is the only true normal to the tangent plane (in this example), but FP is normal to a tangent to the surface. Tricky. Gonna have to think about this some more to see if I can imagine a surface with multiple normals to a single point on the surface.

Phil


DesignCAD user since 1987

prl

#38
Quote from: Dr PR on February 09, 2014, 01:08:55 PM
Imagine a surface that passes through both the arc and parabola.

Phil, is your graphic 2d or 3d?  I would like to put a surface to those and see if the resulting surface is truly one surface or two intersecting surfaces.    Hard for me to visualize at the moment.

Off topic, did the segitv3 solve the curve accuracy issue?

Dr PR

prl,

Here is the file. I made a quick attempt to stretch a surface over the two curves, but it will take a lot more work than I have time for right now.

****

I haven's seen segitv3. I'll track it down and see how it works.

Phil
DesignCAD user since 1987