COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Getting point coords

• Email
• Follow

```Hi everybody,

there is a way to get the exact coord of a point, to use it somewere else
(maybe for the rotation centre) without writing down the coords? Maybe
something:

Point(2).X

where 2 is the #2 point in the drawing...

P.S. Happy new year to everybody ;)

```
 0

See related articles to this posting

0 Replies
83 Views

Similar Articles

12/7/2013 11:21:47 AM
page loaded in 5363 ms. (0)

Similar Artilces:

Retrieving vertex coords
Hi, I've been playing around with OpenGL for a while and decided to add collision detection. The actual collision detection isn't a problem - however retrieving the global coords of triangle verticies (i.e. post glRotate3f and glTranslate3f). Obviously I could just perform the translate/rotate calculations manually - as well as letting OpenGL perform them for the rendering - but this seems rather inefficient. Especially as rotating each vertex requires multiple (expensive) calls to sin/cos. So does anyone know how to ... a) Retrieve the global coords of a vertex I've just drawn. b) Use my video card to accelerate the secondary translate/rotate calculations so I can render + collide more than a few triangles. Thanks, Vrai. Vrai Stacey wrote: > Obviously I could just perform the translate/rotate calculations > manually - as well as letting OpenGL perform them for the rendering - > but this seems rather inefficient. Especially as rotating each vertex > requires multiple (expensive) calls to sin/cos. > No it doesn't. You make a matrix and use that for all the vertices at that level. > a) Retrieve the global coords of a vertex I

NO Way to move sketches from point to point
the endpoint of one line to the > origin. Does anybody know a way to do that? I don't think I can use > constraints, because I have a number of items selected to move. I don't > think I can do it with dimensioning, because I would need a dimension > with a "0" value,, which I don't think Solidworks will allow me to do. > > Any thoughts anybody? > You can move a group of unconstrained sketch geometry point to point, but it's not the same as Acad. The group you want to move either has to be constrained in such a way that it can move, but not change shape. Or it must have no constraints or dimensions at all. Select the end point of the geometry (I'm assuming an imported ACAD sketch), and cntrl-select the origin. RMB to bring up the menu and click "coincident". If the sketch does weird stuff, hit the "back" icon, find the problem, and try again. allot of people, fresh from ACAD, try to do their sketching in ACAD and import it. This is a mistake. Most times the sketch ends up being much too complicated, and messing with it takes more time than starting in SW. Sketches should be as simple as possible

Floating point section in tutorial
I have added a floating point section to the tutorial. If you have some spare time please take a look and tell me if I did anything wrong. ftp://ftp.cs.virginia.edu/pub/lccwin32/tutorial.pdf P.S. It is called "Numerical programming" page 136 "jacob navia" <jacob.navia@jacob.remcomp.fr> wrote in message news:bep2pp\$tve\$1@news-reader1.wanadoo.fr... > I have added a floating point section to the tutorial. If you have some spare time please take a > look and tell me if I did anything wrong. > > ftp://ftp.cs.virginia.edu/pub/lccwin32/tutorial.pdf Doesn't work. Correct URL is ftp://ftp.cs.virginia.edu/pub/lcc-win32/tutorial.pdf Vic "jacob navia" <jacob.navia@jacob.remcomp.fr> wrote in message news:bep364\$ebc\$1@news-reader8.wanadoo.fr... > P.S. It is called "Numerical programming" page 136 Three errors I found on a quick scan : [1] Spelling e.g. deinsity for density, numebr for number, adresses for addresses, etc [2] O(x) ** 9 should be O(x**9) [3] Why do 32-bit numbers have "almost" 4294967296 values rather than exactly? Vic "Vic Drastik" <1234567829@bigpond.com> wrote

Decimal Floating-Point Controversy
At the moment, the IEEE is voting on a revision to IEEE 754, which will include a standard for decimal floating-point. The new decimal floating-point standard includes an interesting and novel feature, a set of "ideal exponent" rules. You may be familiar with how unnormalized floating-point arithmetic can be used to implement significance arithmetic. While this decimal floating-point standard also provides for unnormalized representations of numeric values, the ideal exponent rules are NOT those of significance arithmetic. Instead, the operands of an arithmetic operation... such a condition, a floating-point representation with an exponent based on a radix of 10 instead of a radix of 2 can have some bad properties. For example, if there are four digits of precision, .9999 plus .9999 is 1.9998, which is closer to 2 than to 1.999. This particular problem is avoided in any radix less than four. On my web page at http://www.quadibloc.com/comp/co020302.htm I describe this new floating-point format. Then I go on to show that, if these numerical faults are a concern, one can modify it somewhat - giving up the ability to have unnormalized values (except for gradual

Floating Point comparison problem
; and this program now always outputs != /home/arnuld/programs \$ g++ -ansi -pedantic -Wall -Wextra test2.cpp /home/arnuld/programs \$ ./a.out != /home/arnuld/programs \$ As FAQ explains Floating-Point is inaccurate but my project is heavily oriented towards number-crunching, so I was thinking of stop developing that sofwtare in C++ and simply use FORTRAN for this specific application in a special domain. -- http://lispmachine.wordpress.com/ arnuld wrote: >> On Fri, 15 Feb 2008 14:13:32 +0500, arnuld wrote: > >> As FAQ explains Floating-Point is inaccurate but my project is heavily >> oriented towards number-crunching, so I was thinking of stop developing >> that sofwtare in C++ and simply use FORTRAN for this specific >> application in a special domain. > > searching the archives at Google Groups gave me a Template, created > by Jerry Coffin. I just added this to my program but my program is not > compiling: > Did you remember to #include <limits>? That's where std::numeric_limits lives. > > #include <iostream>

point cloud #3
Hi ! I am trying to create a graphical representation of a cloud of points, the coordinates of which are in a 100 x 3 matrix, with each column corresponding x, y, z, coordinates respectively. (imagine cubes containing other cubes, at a varying inner distance) My issue is that this is a Volume, and I am trying to observe the density of these dots in the volume. I will therefore need to zoom in to the resulting figure and see what is contains. (Plot3 is inappropriate here, as it only displays the surface of the outermost object. Further plot3(x, y, z, '.') is falsifying the re

Rendering of a point cloud
Hello, I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you. "Cem " <hiittite@gmail.com> wrote in message <gqdbit\$ge8\$1@fred.mathworks.com>... > Hello, > > I have a point cloud in which I do...; <hiittite@gmail.com> wrote in message <gqdbit\$ge8\$1@fred.mathworks.com>... > Hello, > > I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you. If the domain is convex, then it is trivially simple. Build a triangulated

Insert point problem
Hi, I have a problem with point inserting in scene. I created scene and performs some rotations and translations, now I would like to insert new point into scene. However, I cannot get properly transform screen coordinates into object coordinates. I have only window mouse x, y coords, and problem how to properly calculate x, y, z coords in world coord system. Sorry, If I repeated question but I really couldn't find solution. Regards, F fahron wrote: > > I have only window mouse x, y coords, and problem how to properly > calculate x, y, z coords in world coord system. > gluUnproject() will do the math but first you have to figure out how deep you mouse is in the screen. -- <\___/> / O O \ \_____/ FTB. For email, remove my socks. In science it often happens that scientists say, 'You know that's a really good argument; my position is mistaken,' and then they actually change their minds and you never hear that old view from them again. They really do it. It doesn't happen as often as it should, because scientists are human and change is sometimes painful. But it happens every day. I cannot recall the last time something like

Point of Sale software osX ?
Are there any point of sale cash register type programs for Macs? Thanks Tony In article <G8dci.7124\$xg4.6318@trnddc08>, AJA <ajanzalone1@verizon.net> wrote: > Are there any point of sale cash register type programs for Macs? A search for "Point of Sale" at versiontracker.com reveals a few. AJA a �crit : > Are there any point of sale cash register type programs for Macs? > > Thanks > Tony > > "Checkout.app" Made by a bunch of guys I had a beer with at Apple Expo 06 in Paris and authors of Disco (the hot CD/DVD burning software) Awesome if you have a handsful of POS, beyond that amount, it's better asking them as the soft was originally made for a big number of computers from what I remember.

Restoring a database to a point in time
Sqlserver 2000 windows 2003 server Database is backed up and restored on a new server with all transaction logs present . Need help with a script to restore database to a a point in time on new server to 2 hours behind current time Your ideas are appreciated as usual Thanks Vincento