 |

|
1>c:\projects\stlviewer\geometry.h(33): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
Shouldn;t geometry.h #include and not #include ?
Of course I tried changing that and got tons of compile problems with istream.
Curious how anyone else got this to build in VS 2010??
|
|
|
|

|
The root cause of the problem is that you are using a latest compiler that has more enforcement of the standards compared to the old compiler. This code should build without any major changes upto VS compilers lower than version 2005. For the code to build on VS2010 you need to replace all #include to #include "standardlibrary" e.g. #include "iostream" instead of iostream.h and #include "cstdlib" instead of stdlib.h. Other than that you also need to change some MFC callback signatures. In the compilers before version 2008 both iostream.h and iostream were available for backward compatibility but from 2008 and up the deprecated headers are no longer supplied. Hope this helps.
Regards
N. Sharjith
|
|
|
|
|

|
Dear Sharjith
The tool seems to be very interesting. I have built the application on MS VS2010 and tried to run the same. After running the viewer is seen only for a fraction of second and collapsing. Could you please suggest any possible solution for the same.
sidhu
|
|
|
|

|
Does it crash when you load some StL file? If so can you please set a break point at the StLReader methods and see what is happening? I am not sure what is happening. It was built using Visual Studio 6 long back and still works fine if it is built with it.
Regards
N. Sharjith
|
|
|
|
|

|
Hi, my name is Ederson, i am from Brazil, is it possible to slice an STL file, i need to do this, i am building an 3d printer with a DLP projection.
|
|
|
|

|
Selection window on window 7 machine got distorted.
|
|
|
|

|
While resizing the main window on window 7 the flash screen will come.
|
|
|
|

|
Hi,Sharjith.
I convert your code to VC++ 2008.When I want to open a .stl file.An runtime error occur.The error is in your CStLReader::Read() in your source file "StLReader.cpp". How to fix?
|
|
|
|

|
Increase the size of array that reads the input.
Regards
N. Sharjith
|
|
|
|

|
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
|
|
|
|
|

|
First of all the StL format is only vertex and normal data and not curves or surface data. Then what are you planning to write into the iges file? What you can export as iges data is only Point and Triangular face and edge data but that won't smoothen your data. What is the objective in converting stl to iges. Conversion of Iges to Stl can be understood.
You may use the code freely in your project.
To read the binary format file of stl data you will have to wite a separate algo.
I do have the code I downloaded from the net once upon a time. If you want I will send it... the website doesn't exist now so I can send it to your personal mail.
Regards
N. Sharjith
|
|
|
|

|
Dear sir ,
I am learning nor of your systems called STL Viewer ,but I am just a newbie about VC++ and opengl .so it's a little hard for me to read the program clearly . and I hope you can add more description to the program or some informationso that I can understand it easyier . If you could mail it to me I will really appreciate it .
By the way , I am working in the Reverse Engineering business .Now I am studying how to cover the holes existing in the STL files . so I wonder if you can give me some programs or system related to it .
Thank you in advance . I am looking forward to your reply !
|
|
|
|

|
Hi Sharjit, thanks for such nice tool, I like the concept. I couldn't run the tool but from snapshot it looks great.
I have a question why you are using GLIDE2X.DLL any specific reason?
Hi All:
did anybody come across below error while running...?
While running I am getting below error "Genport I/O initialitazion failure" under Windows2000. I guess this error is due to graphics setting.
Please let me know if anybody come across such error.
Thanks in advance
Vinod
.
|
|
|
|

|
how to display the dimension of the meshed triangular facets? pls help me
|
|
|
|

|
What dimension? Coordinates of vertices of each triangle? Or area of each triangle or all dimensions of the entire object? I am not clear, please elaborate.
|
|
|
|

|
sorry for not responding you. actually im having a stl file (diamond model) which i cant import through your code. mine is meshed with polygon. i dont know how to mesh the stl model with polygons and to display the height, weight, length etc?.
i have to display the dimension when the model is viewed in front, top, bottom and side. is there any tool available to purchase. pls help me
-- modified at 2:27 Thursday 26th July, 2007
|
|
|
|

|
Hi,
I am running the code in VC++ and obtain the following error:
LINK : fatal error LNK1561: entry point must be defined
I have no idea how to fix this problem. Any help is much appreciated.
Thanks,
David
|
|
|
|

|
HI ,
The software is great and I am finding it useful. I actually want to simulate a mass spectrometer using and want to use your software to display the 3D from .stl files.
But I am not able to open other .stl files from your software. It opens fine for the sample files you have given. Please help me as soon as possible.
It would also help if you could tell me where is the code to access the co-ordinates in the display.
Waiting for your reply,
Thanks,
Vikas
|
|
|
|

|
HI ,
The software is great and I am finding it useful. I actually want to simulate a mass spectrometer using and want to use your software to display the 3D from .stl files.
But I am not able to open other .stl files from your software. It opens fine for the sample files you have given. Please help me as soon as possible.
It would also help if you could tell me where is the code to access the co-ordinates in the display.
Waiting for your reply,
Thanks,
Vikas
|
|
|
|

|
Maybe,this software just support ASCII files,you should change the binary files to ASCII files.
|
|
|
|

|
Is anyone else having trouble building the code? I'm getting a bunch of errors and they are all over my head. Does anyone still check this and will be able to help me?
-Me
|
|
|
|

|
Hello,at first thank you for your good viewer .I am a student and I am very interested in the topological relationship of triangles.Now,I can select one point of the triangles model,but I can't find its neighbor points.So we should rebuild topological structures .Would you have some good idea?
I am looking forward to good news .My e-mail:hyzhujc@163.com
-- modified at 2:50 Tuesday 5th December, 2006
-- modified at 2:54 Tuesday 5th December, 2006
I have a dream...
|
|
|
|

|
hi,
basically, in this application the triangles are read and directly displayed as opengl elements. for making use of topology, the triangles have to be stored in a topological data structure where the list of triangle nodes are to be stored with indexes and then edges and faces have to be constructed with the topological relations maintained. in the present case, if you notice, there is duplication of nodes of triangles sharing the same vertices, whereas when you use topology, the duplication has to be eliminated thus maintaining the rule of topology.
regds
n. sharjith
|
|
|
|
 |