Hope everyone enjoying weekend. I need little help.
Above is the file format. I want to split it into two stl files namely top.stl bottom.stl. How can I do it?
Also, There is no limit for number of solid regions. shell script should work for any number of solids.
Hi,
I'm experiencing difficulty in loading an XML file to an Oracle destination table.I keep running into a memory problem due to the large size of the file.
I want to split the XML file into several smaller files based on the keyword(s)/tags : '' and '' and would like to use a Unix shell... (2 Replies)
Hi all,
I have a file of around 300 lines in which string "SERVER" occurs around 32 times.
for eg.
I need to split files like, for eg
I am using this code
awk '/SERVER/{n++}{print > f n}' f=/vikas/list /vikas/final
But the problem is that it makes maximum of 10 files, but I... (12 Replies)
Hi all,
Following is the shell script which I am using for splitting the contents from a flat file to the multiple XMLs. The problem is that this script is working file when the input file is having 10000 lines. When the number of lines increases; the performance degrades drastically. Please... (1 Reply)
Hi,
I need some help creating a tidy shell program with awk or other language that will split large length files efficiently.
Here is an example dump:
<A001_MAIL.DAT>
0001 Ronald McDonald 01 H81
0002 Elmo St. Elmo 02 H82
0003 Cookie Monster 01 H81
0004 Oscar ... (16 Replies)
i need one help....
if i have a string like aaaaa,bbbbb,ccccc,aaaaa
How to to split the string and check howmany times aaaaa will be in that string?
Thanks (7 Replies)
Hi All,
I'm fairly new to scripting, so need a little help to get started with this problem.
I don't mind whether I go for an awk/bash/other approach, I don't really know which would be best suited to the problem...
Lets say I have a 10000 line text file, I would like to split this up into a... (6 Replies)
Hi,
I need help to split lines from a file into multiple files.
my input look like this:
13
23 45 45 6 7
33 44 55 66 7
13
34 5 6 7 87
45 7 8 8 9
13
44 55 66 77 8
44 66 88 99 6
I want to split every 3 lines from this file to be written to individual files. (3 Replies)
Hi Guys,
I'm very new to bash scripting. Please help me on this.
I'm in need of a backup script which does the ff.
1. If a file is larger than 5GB. split it and tar the file.
2. Weekly backup file to amazon s3 using s3rsync
3. If a file is unchanged it doesn't need to copy to amazon s3
... (4 Replies)
I have a large semicolon delimited file with thousands of columns and many thousands of line. It looks like:
ID1;ID2;ID3;ID4;A_1;B_1;C_1;A_2;B_2;C_2;A_3;B_3;C_3
AA;ax;ay;az;01;02;03;04;05;06;07;08;09
BB;bx;by;bz;03;05;33;44;15;26;27;08;09
I want to split this table in to multiple files:
... (1 Reply)
Discussion started by: trymega
1 Replies
LEARN ABOUT REDHAT
glutessvertex
GLUTESSVERTEX(3G)GLUTESSVERTEX(3G)NAME
gluTessVertex - specify a vertex on a polygon
C SPECIFICATION
void gluTessVertex( GLUtesselator* tess,
GLdouble *location,
GLvoid* data )
PARAMETERS
tess Specifies the tessellation object (created with gluNewTess).
location Specifies the location of the vertex.
data Specifies an opaque pointer passed back to the program with the vertex callback (as specified by gluTessCallback).
DESCRIPTION
gluTessVertex describes a vertex on a polygon that the program defines. Successive gluTessVertex calls describe a closed contour. For exam-
ple, to describe a quadrilateral gluTessVertex should be called four times. gluTessVertex can only be called between gluTessBeginContour
and gluTessEndContour.
data normally points to a structure containing the vertex location, as well as other per-vertex attributes such as color and normal. This
pointer is passed back to the user through the GLU_TESS_VERTEX or GLU_TESS_VERTEX_DATA callback after tessellation (see the gluTessCallback
reference page).
EXAMPLE
A quadrilateral with a triangular hole in it can be described as follows:
gluTessBeginPolygon(tobj, NULL);
gluTessBeginContour(tobj);
gluTessVertex(tobj, v1, v1);
gluTessVertex(tobj, v2, v2);
gluTessVertex(tobj, v3, v3);
gluTessVertex(tobj, v4, v4);
gluTessEndContour(tobj);
gluTessBeginContour(tobj);
gluTessVertex(tobj, v5, v5);
gluTessVertex(tobj, v6, v6);
gluTessVertex(tobj, v7, v7);
gluTessEndContour(tobj); gluTessEndPolygon(tobj);
NOTES
It is a common error to use a local variable for location or data and store values into it as part of a loop. For example: for (i = 0; i <
NVERTICES; ++i) {
GLdouble data[3];
data[0] = vertex[i][0];
data[1] = vertex[i][1];
data[2] = vertex[i][2];
gluTessVertex(tobj, data, data);
}
This doesn't work. Because the pointers specified by location and data might not be dereferenced until gluTessEndPolygon is executed, all
the vertex coordinates but the very last set could be overwritten before tessellation begins.
Two common symptoms of this problem are consists of a single point (when a local variable is used for data) and a
GLU_TESS_NEED_COMBINE_CALLBACK error (when a local variable is used for location).
SEE ALSO gluTessBeginPolygon(3G), gluNewTess(3G), gluTessBeginContour(3G), gluTessCallback(3G), gluTessProperty(3G), gluTessNormal(3G),
gluTessEndPolygon(3G)GLUTESSVERTEX(3G)