Archived

This topic is now archived and is closed to further replies.

.map brush to face question

This topic is 5174 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok... i'm using worldcraft to make a .map file. after i have the file i read it into my program. so now i have all of the brush info stored. i know that to find the forth point to turn the brushes into quads, you have to find the intercection 3 planes(3 lines of the file). do i just use every 3 lines or is thre a pattern? here is an exampe of an object i'm trying to load:
{
( -25 126 -5120 ) ( -49 118 -5120 ) ( -71 106 -5120 ) RE0 0 0 0 1.000000 1.000000
( 0 128 -5120 ) ( 25 126 -5120 ) ( 25 126 5120 ) RE0 0 0 0 1.000000 1.000000
( 25 126 -5120 ) ( 49 118 -5120 ) ( 49 118 5120 ) RE0 0 0 0 1.000000 1.000000
( 49 118 -5120 ) ( 71 106 -5120 ) ( 71 106 5120 ) RE0 0 0 0 1.000000 1.000000
( 71 106 -5120 ) ( 91 91 -5120 ) ( 91 91 5120 ) RE0 0 0 0 1.000000 1.000000
( 91 91 -5120 ) ( 106 71 -5120 ) ( 106 71 5120 ) RE0 0 0 0 1.000000 1.000000
( 106 71 -5120 ) ( 118 49 -5120 ) ( 118 49 5120 ) RE0 0 0 0 1.000000 1.000000
( 118 49 -5120 ) ( 126 25 -5120 ) ( 126 25 5120 ) RE0 0 0 0 1.000000 1.000000
( 126 25 -5120 ) ( 128 0 -5120 ) ( 128 0 5120 ) RE0 0 0 0 1.000000 1.000000
( 128 0 -5120 ) ( 126 -25 -5120 ) ( 126 -25 5120 ) RE0 0 0 0 1.000000 1.000000
( 126 -25 -5120 ) ( 118 -49 -5120 ) ( 118 -49 5120 ) RE0 0 0 0 1.000000 1.000000
( 118 -49 -5120 ) ( 106 -71 -5120 ) ( 106 -71 5120 ) RE0 0 0 0 1.000000 1.000000
( 106 -71 -5120 ) ( 91 -91 -5120 ) ( 91 -91 5120 ) RE0 0 0 0 1.000000 1.000000
( 91 -91 -5120 ) ( 71 -106 -5120 ) ( 71 -106 5120 ) RE0 0 0 0 1.000000 1.000000
( 71 -106 -5120 ) ( 49 -118 -5120 ) ( 49 -118 5120 ) RE0 0 0 0 1.000000 1.000000
( 49 -118 -5120 ) ( 25 -126 -5120 ) ( 25 -126 5120 ) RE0 0 0 0 1.000000 1.000000
( 25 -126 -5120 ) ( 0 -128 -5120 ) ( 0 -128 5120 ) RE0 0 0 0 1.000000 1.000000
( 0 -128 -5120 ) ( -25 -126 -5120 ) ( -25 -126 5120 ) RE0 0 0 0 1.000000 1.000000
( -25 -126 -5120 ) ( -49 -118 -5120 ) ( -49 -118 5120 ) RE0 0 0 0 1.000000 1.000000
( -49 -118 -5120 ) ( -71 -106 -5120 ) ( -71 -106 5120 ) RE0 0 0 0 1.000000 1.000000
( -71 -106 -5120 ) ( -91 -91 -5120 ) ( -91 -91 5120 ) RE0 0 0 0 1.000000 1.000000
( -91 -91 -5120 ) ( -106 -71 -5120 ) ( -106 -71 5120 ) RE0 0 0 0 1.000000 1.000000
( -106 -71 -5120 ) ( -118 -49 -5120 ) ( -118 -49 5120 ) RE0 0 0 0 1.000000 1.000000
( -118 -49 -5120 ) ( -126 -25 -5120 ) ( -126 -25 5120 ) RE0 0 0 0 1.000000 1.000000
( -126 -25 -5120 ) ( -128 0 -5120 ) ( -128 0 5120 ) RE0 0 0 0 1.000000 1.000000
( -128 0 -5120 ) ( -126 25 -5120 ) ( -126 25 5120 ) RE0 0 0 0 1.000000 1.000000
( -126 25 -5120 ) ( -118 49 -5120 ) ( -118 49 5120 ) RE0 0 0 0 1.000000 1.000000
( -118 49 -5120 ) ( -106 71 -5120 ) ( -106 71 5120 ) RE0 0 0 0 1.000000 1.000000
( -106 71 -5120 ) ( -91 91 -5120 ) ( -91 91 5120 ) RE0 0 0 0 1.000000 1.000000
( -91 91 -5120 ) ( -71 106 -5120 ) ( -71 106 5120 ) RE0 0 0 0 1.000000 1.000000
( -71 106 -5120 ) ( -49 118 -5120 ) ( -49 118 5120 ) RE0 0 0 0 1.000000 1.000000
( -49 118 -5120 ) ( -25 126 -5120 ) ( -25 126 5120 ) RE0 0 0 0 1.000000 1.000000
( -25 126 -5120 ) ( 0 128 -5120 ) ( 0 128 5120 ) RE0 0 0 0 1.000000 1.000000
( -70 104 -5100 ) ( -48 116 -5100 ) ( -25 124 -5100 ) RE0 0 0 0 1.000000 1.000000
}  
edit: damn it lol. how do you make a code box? "Ford, you're turning into a penguin. Stop it." - HichHiker's Guide to the Galaxy [edited by - PmanC on October 11, 2003 6:52:54 PM] [edited by - PmanC on October 11, 2003 6:53:34 PM] [edited by God] [edited by - PmanC on October 11, 2003 6:54:59 PM] [edited by - PmanC on October 11, 2003 9:59:29 PM]

Share this post


Link to post
Share on other sites
Start a loop like this :


//For each Brush..

for(int i=0;i<numOfFaceDefs;i++)

for(int j=0;j<numOfFaceDefs;j++)

for(int k=0;k<numOfFaceDefs;k++)

if(i!=j && j!=k && i!=k)

Intersection(...);


[edited by - komillos on October 11, 2003 10:23:32 PM]

[edited by - komillos on October 11, 2003 10:24:26 PM]

Share this post


Link to post
Share on other sites