I have 开发者_开发问答two shapes which are cross sections of a channel. I want to calculate the cross section of an intermediate point between the two defined points.
I have a surface which is a polyhedron and I want to find the minimal distance between it and a given point P. Since the polyhedron is defined by many polygons in a 3d space, one way that occurs to me
So I have some function that recei开发者_运维知识库ves N random 2D points. Is there any algorithm to calculate area of the shape defined by the input points?You want to calculate the area of a polyg
I am currently writing the positions of my geometry to the RGB channels of gl_FragColor and I would like to write 1.0 to the alpha channel if the fragment is part of geometry, and 0.0 if its e开发者_J
I am building a CAD-file converter on top of two libraries (Opencascade and DWF Toolkit). However, my question is plattform agnostic:
I have to represent graphically an oriented graph like in the image below. alt text http://img694.imageshack.us/img694/1605/graf.gif
I am trying to display a circular object in my gui, the circular object should contain a few labels therefore I thought the circle object should extend JPanel. 开发者_如何学运维Does anyone know how to
Finding the point of intersection for two 2D line segments is easy; the formula is st开发者_如何学编程raight forward. But finding the point of intersection for two 3D line segments is not, I afraid.
I\'d like to write a program that lets me arbitrarily 开发者_运维百科distort a textured polygon by dragging its vertices. I want the texture to distort fluidly and without overlap, assuming the new po
I\'m using rectangles defined in terms of their x y coordinates and their width and height. I figured out how to rotate them in terms of coordinates (x = cos(deg) * x - sin(deg) * y y = sin(deg) * x +