Hi Mikhail,<br><br>I am really sorry for incorrect and inappropriate
question. I have a C++ code to create .geo file... what i want to do is
instead of creating .geo file, i want to directly enter values into the
gmsh model through code.. Is it possible?<br>
<br>My current geo file is saved in this manner(short ex)<br><br>Point(1) = {0,0,1};<br>Point(2) = {1,0,2};<br>...<br>...<br>Point(n) = {a,b,c}<br>Line(1) = {1,2};<br>Line(2) = {2,3};<br>...<br>...<br>Line(m-1) = {k-1,k};<br>
Line(m) = {k,1};<br>Lineloop(1) = {1,2,...,m};<br>Line(m+1) = {k+1,k+2};<br>...<br>LineLoop(2) = {m+1, m+2,...};<br>Plane Surface(1) = {1,2};<br><br>Is
there any interface where in I can directly enter contents of .geo file
into model of gmsh instead of writing it into file and reading it back?<br>
<br><br><div class="gmail_quote">2011/10/25 Mikhail Artemiev <span dir="ltr"><<a href="mailto:artemiev.mikhail@ngs.ru">artemiev.mikhail@ngs.ru</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<u></u>
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi, Rakesh!</font></div><div class="im">
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">>><font face="Times New Roman" size="3">Is
there a way to generate .geo file pro grammatically..?? i.e. using
C++.??</font></font></div>
<div> </div>
</div><div><font face="Arial" size="2">Maybe, I don't really understand your question...
but what is the problem?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">int main()</font></div>
<div><font face="Arial" size="2">{</font></div>
<div><font face="Arial" size="2"> std::ofstream geo("test.geo");</font></div>
<div><font face="Arial" size="2"> geo << "Point(1) = {0, 0,
0};\n";</font></div>
<div><font face="Arial" size="2"> // and so on</font></div>
<div><font face="Arial" size="2"> geo.close();</font></div>
<div><font face="Arial" size="2"> return 0;</font></div>
<div><font face="Arial" size="2">}</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Cheers</font></div>
<div><font face="Arial" size="2">Mikhail Artemiev</font></div></div>
<br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br>