Looked through the archive but couldn't find any good answer.
I'm importing an object form Archicad (via 3ds format) to LW and need
to do some amendments in Modeler, but... there are lots of triangles
(circles!) there and it's hard to work efficiently with this...
So, is there any function, plugin or script that reduces neighbouring
polys with common points and laying 'in-line' to one n-poly (of course
Aleksander Lenart wrote:
> Looked through the archive but couldn't find any good answer.
> I'm importing an object form Archicad (via 3ds format) to LW and need
> to do some amendments in Modeler, but... there are lots of triangles
> (circles!) there and it's hard to work efficiently with this...
> So, is there any function, plugin or script that reduces neighbouring
> polys with common points and laying 'in-line' to one n-poly (of course
> Aleksander Lenart
Reduce Polygons should do it. I use this workflow ( ArchiCAD -> 3ds file
-> Lightwave ) all the time.
You could try saving as an OBJ as that supports n-gons as well.
Variable substitution within n matrices I needed a program to read a few 3x3 matrices containing
variables,like N and T.
N and T are stored in the same directory; when invoking the program
(SOST) the newer N and T are present on stack levels 1 and 2.I solved
it with ->NUM in this program,but was there another(better) way to do
it?is SUBST helpful?
Rr1 Rr2 Rr3 Rr4
->NUM 'Rr4S' STO
->NUM 'Rr3S' STO
->NUM 'Rr2S' STO
->NUM 'Rr1S' STO
Rr1S Rr2S Rr3S Rr4S
On Jan 11, 7:58=A0am, Nicola Bressanin <nicola.bressa...@gmail.com>
> I needed a program to read a few 3x3 matrices containing
> variables,like N and T.
> N and T are stored in the same directory; when invoking the program
> (SOST) the newer N and T are present on stack levels 1 and 2.I solved
> it with ->NUM in this program,but was there another(better) way to do
> it?is SUBST helpful?
> 'T' STO
> 'N' STO
> Rr1 Rr2 Rr3 Rr4
> ->NUM 'Rr4S' STO
> ->NUM 'Rr3S' STO
> ->NUM 'Rr2S' STO
> ->NUM 'Rr1S' STO
> Rr1S Rr2S Rr3S Rr4S
reading N chars from istream into stringstream I hoped to find this in the FAQ (lite or book), but didn't.
I need to read N chars from an istream into an stringstream for
further line-by-line processing. The N bytes are supposed to be text
lines, but I cannot directly operate on the lines in the istream via
getline(), since the last line might not have a line separator but
runs directly into binary data.
Right now I do (error and stream state checks omitted)
// now we operate via getline() on the stringstream
Is there a better way? Ideally I would like to omit the temporary
string object and read the buflen bytes into the stringstream
directly. I also tried
istream >> noskipws >> setw(buflen) >> stringstream.rdbuf();
but this reads the whole istream, and I did not find a way to limit to
buflen characters. The setw() obviously only takes effect when
reading into char.
istream.get(streambuf, size) stops at newlines or delimiters, which I
also don't want here.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
Drag-n-Drop FTP Client (KDE Preferred) What's a good drag-n-drop ftp client for use on Mandriva
2010.1 running KDE 4? The client has to be able to accept
user/password. This will be used by my grade school kids
to transfer schoolwork between school and home.
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Simulink n-dimensional scatter data interpolation Hello everybody
I have a 4-dimensional set of experimental data:
v = f(x,y,z)
- x, y, z, v are 1x20 vectors.
- f is UNKNOWN in fact it is what I need to estimate.
I want to calculate:
v_i = f(x_i, y_i, z_i)
For a different set of data (x_i. y_i, z_i) in Simulink.
The block LOOPUP N-D seems to be what I need, but I only get NaN on its output.
I have done this kind of interpolation already in M-code, using GRIDDATAN, and that worked fine.
May it be that I am using the lookup block wrong? I set parameters like this:
Breakpoint 1: x
Breakpoint 2: y
Breakpoint 3: z
Table: griddatan result on x,y,z evaluated on an uniform grid
I am not sure the Table is properly input, as I keep on getting NaN when I should not
Any idea, suggestion, shortcut ?
Small update here:
I tried creating the following out of my data:
* 3 breakpoints, being of dimension 1x10:
* A table, a 3D diagonal matrix (10x10x10) with all the corresponding values of v on the diagonal of the matrix, and the rest ZERO.
But then I get the following error when I run simulink:
--> Values of BreakpointsForDimension1 in 'canistergasmodel02/Lookup Table (n-D)' must be monotonically
Re: the "n=" option in the infile statement On 10/9/06, Arthur Westover <firstname.lastname@example.org> wrote:
> I am converting a .asc database into a SAS database.
> I was using the boilerplate code from the government
> agency, and I was getting errors saying that I had
> invalid data and SAS suggested that I change the
> "infile n=" option.
> So I tried looking up what that meant, and I found
> "specifies the number of lines that are available to
> the input pointer at one time."
> I didn't really understand what this meant. But I
> arbitrarily added 'n=10' to my infile statement, and
> suddenly no errors.
> However, I really don't understand what I did. Did I
> increase some sort of buffer for SAS in the import
> process? Is it possible I have corrupted the data in
> the import process?
I would guess perhaps yes. But then you don't show enough of the
input statement to help answer that question.
In your original attempt to read the file did you get the flowover
message. SAS when to a new line the the input
Re: how to find mean of n observation for subject #3 Shaik,
There seems to have 7 combinations not 4 as you have shown. I am not sure of
your need. Here is DoW approach.
patid sample val1 val2 val3 @13 side_t $5. side period ;
1 3 2 4 2 LEFT 1 1
1 4 3 3 . LEFT 1 1
2 9 4 4 3 LEFT 1 1
2 11 3 5 3 LEFT 1 1
2 16 2 4 2 RIGHT 2 1
9 57 2 4 1 LEFT 1 1
9 58 . 4 2 LEFT 1 1
1 248 2 2 2 RIGHT 2 2
2 254 2 2 2 RIGHT 2 2
2 256 1 1 1 RIGHT 2 2
9 298 2 2 2 LEFT 1 2
9 300 1 1 1 LEFT 1 2
proc sort data = have;
by side_t patid period side;
length patid 8. period 8. side 8. side_t $5. varmean 8.; * To keep
Microsoft shows off its next-generation 'Project N' compiler technology Since COLA is so interested in hearing about all things Microsoft and Apple:
Microsoft shows off its next-generation 'Project N' compiler technology
Nov 13, 2013
Microsoft execs also showed off -- without using the codename -- a new
technology in development for compiling directly .Net code to native code.
That technology, from what I've heard from my sources, is codenamed "Project
Microsoft Project Manager Orville McDonald showed a quick demonstration
during the Visual Studio launch of two different versions of Microsoft's
FreshPaint app running on Microsoft Surface tablets. One of the versions
made use of unspecified optimization technology that caused the application
launch and run more quickly than the version without.
"I've done for example SQL optimization and the reason I could do it better
than the best high level experts can do was because I think in hex and bits
and byte movements. If you know the assembler in detail, you would know what
"select * from
FAQ 5.4 How do I delete the last N lines from a file? #2 455077 This is an excerpt from the latest version perlfaq5.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .
5.4: How do I delete the last N lines from a file?
(contributed by brian d foy)
The easiest conceptual solution is to count the lines in the file then
start at the beginning and print the number of lines (minus the last N)
to a new file.
Most often, the real question is how you can delete the last N lines
without making more than one pass over the file, or how to do it without
a lot of copying. The easy concept is the hard reality when you might
have millions of lines in your file.
One trick is to use "File::ReadBackwards", which starts at the end of
the file. That module provides an object that wraps the real filehandle
to make it easy for you to move around the file. Once you get to the
spot you need, you can get the actual