Code Red > .NET

Create object

<< < (3/4) > >>

gile:
As the program only knows a polyline somewhere in space, it cannot know if the polyline Normal is in the "good" direction...

feesa:
One more thing pls,
In coding where it's considering the direction as good?

gile:
Only considering the polyline, the code cannot know anything at all about what's the "good direction".
To evaluate the "good direction", it also needs to know the solid position about the polyline Normal.

Your request is not trivial at all and it looks like you want sombody to do your work for you...

feesa:
Many Thanks for your replays,

I didn't really mean like that,
Since I was in Learning stage, I was just finding the guidance....

gile:
So, if you get the solid by coding, you can compare the distance from the solid.MassProperties.Centroid to the 'center' of the window with the distance from the solid centroid to the 'center' plus the 'normal' (center + normal).
If the second one is less than the first one, you have to negate the normal (normal = normal.Negate();).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version