views:

217

answers:

3

I'm looking for an application, which could be able to load bunch of points in space, render them and be able to simple 3D operations (select such point, rotate & move viewport).

The source has to be available, as I want to use it as basis for my own application.

A: 

You can use directX to solve this problem. I had done this using delphi and directX. You can implement it using c# also.

which could be able to load bunch of points in space
You can do this by reading a textfile or binary file as you like and store it in buffer.

TD3DXVector3 temppt = D3DXVector3(X,Y,Z);

Here, TD3DXVector3 is type in directX.

render them
For rendering, there is a method DrawPrimitive of IDirect3DDevice9, using which you can render point, line or triangle.

g_pd3dDevice.DrawPrimitive(D3DPT_TRIANGLELIST,0,count);

Here, Count is the number of triangles you want to draw.

select such point, rotate & move viewport
For rotation and moving viewport you can use transformation matrices for Projection transformation, View Transformation and world Transformation.

Himadri
A: 
scriptingalias
A: 

There are several open source 3D editors, but you'll find that most of them are associated with a particular 3D engine (i.e. irrEdit => Irrlicht).

There's Blender, but I suspect it's far too complex to find the code you want.

In a few minutes of Googling, I haven't been able to find a simple example of a 3D editor with source code included, but I have found this, which may be useful:

Programming a 3D Editor

Tim