 |
|
 |
MR.Sharjith
Can I please hire you to produce a simple CGi code that outputs stl dimensions, volume etc from an uploaded stl file.
Chris
|
|
|
|
 |
|
 |
Hi Chris,
I am sorry, I didn't get what you mean by CGi. Secondly, you won't be able to get any dimensions of features from the StL model as you get in CAD models. StL models are just triangles so you cannot programatically find dimensions between features like faces, fillets, chamfers etc. Finding volume may be practically possible but relatively very difficult.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
MR.Sharjith sir, Thanks for your immediate response about all previous queries. Now when i compile your project it is fine. But when i try to open STL file it is just flick but stl file is not showing and also show the debug assertion failed error(read stl click) occur. can you send me some clue or code for how to open stl file in my view. I am using your whole code as it is and try to open stl file. Thanks Sangaramoorthy A
-- Modified Friday, September 24, 2010 2:11 AM
|
|
|
|
 |
|
 |
Can you please send me the debug traces?
Regards
N. Sharjith
|
|
|
|
 |
|
 |
Tell the correct path and also i have .dll and .h extension file the file which folder i can place ... C:\Program Files\Microsoft Visual Studio 9.0\VC
|
|
|
|
 |
|
 |
Locate the GL folder in your include folder of your compiler installation. If you are using VS2008, it should be probably in the Microsoft SDK folder includes.
For me it is:
C:\Program Files (x86)\Microsoft SDKs/Windows/v7.0A/Include/GL/
Paste the glut.h file into the above location.
C:\Program Files (x86)\Microsoft SDKs/Windows/v7.0A/Lib
Paste the glut32.lib file into the above location.
Note: your path may vary as per the installation of SDK versions. Best way is to search for the other OpenGL files like gl.h and glu.h and place glut.h in the same GL folder and then the glut32.lib file in the Lib folder 2 levels above.
Hope this helps.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
i paste the glut32.dll in system32 folder but the same following error occur again: fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory c:\users\lab-temp\desktop\stlviewer_src\stlviewer\stdafx.h
|
|
|
|
 |
|
 |
Error 1 fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory c:\users\lab-temp\desktop\stlviewer_src\stlviewer\stdafx.h 26 StLViewer
|
|
|
|
 |
|
 |
You need to install the glut library.
Find it here:
http://www.xmission.com/~nate/glut.html[^]
Unzip the binary package and copy the glut32.dll to c:\windows\system32 folder, glut32.lib to the libs folder and glut.h to the include\GL folder of your compiler.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
Hi,
In a STL file, there are many duplicated points. How can I remove them?
In order to remove duplicated points we need to search the entire point list. I think you are using linked list to store the points.In that case the searching time will be high. I tried using KD tree but still the time needed to load the stl file is high. "Meshlab" quickly loading stl meshs and removing duplicate points. How can I efficiently load a STL mesh?
|
|
|
|
 |
|
 |
Removing duplicate elements in a list can be done by using the standard template library algorithms like using the unique method of the std::list class. For that you may also have to provide equality operator for the Point class for comparison. But once you remove the duplicates the individual triangle's self-contained vertex information would be lost. To keep account of that, you must store indexes to reference the vertex of each triangle, as each unique point will be vertex to more than one triangle. This will no longer be a simple data structure but a complicated topological data structure with vertex nodes and neighbouring triangle information etc. If you need to do any processing on the StL data, it is worth doing all this. However, the application shown here just builds the visualization data structure for the StL model.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
Hi Friends!!
my name is siva.i have few doubts.
1. HOW TO CALCULATE INTERIOR ANGLE OF A TRIANGLE? (I Have x,y,z coordinate points as vertices)
2. HOW TO CALCULATE ANGLE BETWEEN UNIT NORMALS OF TWO ADJUSTANT TRIANGLE? (I Have known normal value for each triangle)
3. HOW TO CALCULATE ANGLE BETWEEN UNIT NORMALS OF TWO ADJUSTANT TRIANGULAR FACETS? (I Have known normal value for each triangle in a surface)
Please if anybody knows regarding these question..
mail me.. atleast refer website links which having solved answer...
SIVABALAN
vigisiva@gmail.com
india.
|
|
|
|
 |
|
 |
1 HOW TO CALCULATE INTERIOR ANGLE OF A TRIANGLE? (I Have x,y,z coordinate points as vertices)
http://mathworld.wolfram.com/Triangle.html[^]
2. HOW TO CALCULATE ANGLE BETWEEN UNIT NORMALS OF TWO ADJUSTANT TRIANGLE? (I Have known normal value for each triangle)
Angle between any two vectors can be found by calculating the dot product and dividing it by the product of magnitudes of both vectors and then calculating the inverse cosine of the resulting value.
double CVector3D::Angle(const CVector3D& Other) const
{
double theta, a, b, dot;
CVector3D tempV = Other;
if(!this->IsNull() && !tempV.IsNull())
{
dot = this->Dot(Other);
a = this->Magnitude();
b = tempV.Magnitude();
theta = acos(dot/(a*b));
return theta;
}
else
return 0;
}
3. HOW TO CALCULATE ANGLE BETWEEN UNIT NORMALS OF TWO ADJUSTANT TRIANGULAR FACETS? (I Have known normal value for each triangle in a surface)
Looks like question 2 repeated
Hope this helps.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
Hi Sirjith sir ji
I saw your application it is very good. But when i compile your project it is fine. But when i try to open STL file it is just flick and second document open but stl file is not showing. can you send me some clue or code for how to open stl file in my view. I am using your whole code as it is and try to open stl file.
i,e, i am unable to open second stl file.
Thanks
Osho
|
|
|
|
 |
|
 |
My Name is SIVABALAN
im doing M.E degree
i have few doubts on STL file:
can any one please answer
1.HOW TO EDIT THE STL FILE ?
2.WHICH SOFTWARES WILL DO EDITING OF STL FILES?
3.IS IT POSSIBLE TO EDIT ACII & BINARY CODING OF STL FILE ? i.e FACET XYZ CORDINATES VALUES.
4.HOW TO DO TRIANGULATION AND RE-TRIANGULATION?
my emailid:vigisiva@gmail.com
mobile:09791399265
Tamilnadu
|
|
|
|
 |
|
 |
I'm new in VC++ 2008.
i got a CAD file which is already convert into STL file.
how do i display it as a 3D image in MFC..
Wat knowledge should i must have to handle this task?
|
|
|
|
 |
|
 |
Hi,
I'm currently working on a web project that analyze stl and iges file's demension (x, y, z). Anyone in here know if there is a component (.net, java) out there that can do this. Please help.
|
|
|
|
 |
|
 |
How do you want the dimension? If the stl is of a surface how can you get the dimension? You can at the most calculate the bounding box by sorting vertices and finding the min-max extents in x, y and z directions.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
dear sir,
i am doing my post graduation in Computer integrated manufacturing.
as a project work i m developing module which should convert CL data
file into machine code language.pl can you help me out how shoud i proceed.
i hope you will fulfil my querry.
thanking you
dixitava
|
|
|
|
 |
|
 |
Hopefully, if you can give me more details about the CL data, which CAM has generated, binary/ascii? for which controller? etc.
Mail me the details, probably can work out.
Regards
N. Sharjith
|
|
|
|
 |
|
 |
thanku sir for immiediet response,
i will do it earliest and will send you the file.
thanku so much.
dixitava
|
|
|
|
 |
|
 |
Dear sir,
I am getting that CL data file in ascii format.
now a days as i said,making module for cam software,is Collabcad.
its open source software,right now only for two dimensional i m getting that CL data file,how can i convert it into 3d view?
I can work out that collabcad software to make 2d drawing and NC command it can reciev to generate 2d simulattion environment which ultimately; gives me CLdata for 2d.
pl guide me how to go further.
|
|
|
|
 |
|
 |
about controller,
i have to make it for multi controllers,but right now want to stick to fanuc alone.
as i make this system running for fanuc,then it can be implemented to others also.
|
|
|
|
 |
|
 |
I am very interested in what you have done with OpenGL. How can I contact you to discuss a possible project?
-James
|
|
|
|
 |
|
 |
You can mail me to sharjith@gmail.com
Regards
N. Sharjith
|
|
|
|
 |