To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.partsOpen lugnet.cad.dat.parts in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / 4587
4586  |  4588
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Help needed with cond. lines
Newsgroups: 
lugnet.cad.dat.parts
Date: 
Wed, 2 Apr 2003 11:59:54 GMT
Viewed: 
1380 times
  
In lugnet.cad.dat.parts, Travis Cobbs writes:
However, you're not completely off the hook, because when primitive
substitution is disabled, the incorrect rendering is caused by the fact that
the file is indeed wrong.  I have corrected the problems (with comments) and
posted the fixed version below.

hi travis,

thx for your suggestion. the removed lines are clear to me. I added them in
a desperate attempt to smooth the primitive - just to see if I could rid of
the problem, but I do NOT understand the fix. I added my comments below:



0 Minifig Helmet with Thick Chinstrap - Type 2
0 Name: conditional.ldr
0 Author: Willy Tschager
0 Unofficial Part

0 BFC CERTIFY CW

4 16 10.253 4 10.253 10.253 21 10.253 13.396 21 5.549 13.396 4 5.549
5 24 13.396 4 5.549 13.396 21 5.549 10.253 4 10.253 14.5 21 0
3 16 13.396 4 5.549 13.396 21 5.549 14.219 7 1.416
5 24 13.396 4 5.549 14.219 7 1.416 13.396 21 5.549 14.219 4 1.416
3 16 14.219 4 1.416 13.396 4 5.549 14.219 7 1.416
5 24 14.219 7 1.416 13.396 21 5.549 13.396 4 5.549 14.5 17 0
3 16 14.219 7 1.416 13.396 21 5.549 14.5 17 0
5 24 14.219 7 1.416 14.5 17 0 13.396 21 5.549 14.5 7 0
3 16 14.5 17 0 14.5 7 0 14.219 7 1.416
5 24 14.5 17 0 13.396 21 5.549 14.219 7 1.416 14.5 21 0
3 16 14.5 17 0 13.396 21 5.549 14.5 21 0
5 24 14.219 4 1.416 14.219 7 1.416 13.396 4 5.549 14.5 7 0
5 24 14.5 7 0 14.219 7 1.416 14.5 17 0 14.219 4 1.416
1 16 14.5 5.5 0 0 -0.981 -0.281 1.5 0 0 0 -0.195 1.416 2-4ndis.dat
0
0 the edge between the two primitives is: 14.5 4 0 14.5 7 0
0 why do you put the first two vertexes at Y=7 and Y=17?
0
0 Travis Cobbs - fixed:
5 24 14.5 7 0 14.5 17 0 14.219 4 1.416 14.219 7 -1.416
0
0 also this looks wired to me. could you give me a more
0 detailed explanation. is it due to the two primitives?
0 why is the first vertex at Y=17 and not 4 or 7?
0
0 Travis Cobbs - fixed:
5 24 14.5 17 0 14.5 21 0 13.396 4 5.549 13.396 21 -5.549
0
0 BFC CERTIFY INVERTNEXT
1 16 14.5 5.5 0 0 0.981 -0.281 1.5 0 0 0 -0.195 -1.416 2-4ndis.dat
5 24 14.219 4 -1.416 14.219 7 -1.416 13.396 4 -5.549 14.5 7 0
5 24 14.219 7 -1.416 14.5 7 0 14.219 4 -1.416 14.5 17 0
3 16 14.5 7 0 14.5 17 0 14.219 7 -1.416
5 24 14.219 7 -1.416 14.5 17 0 14.5 7 0 13.458 14.186 -5.239
4 16 14.5 17 0 13.458 14.186 -5.239 13.511 12 -4.975 14.219 7 -1.416
5 24 14.219 7 -1.416 13.511 12 -4.975 13.458 14.186 -5.239 13.511 9 -4.975
3 16 13.511 12 -4.975 13.511 9 -4.975 14.219 7 -1.416
5 24 14.219 7 -1.416 13.511 9 -4.975 13.511 12 -4.975 13.458 6.81 -5.239
3 16 14.219 7 -1.416 13.511 9 -4.975 13.458 6.81 -5.239
5 24 13.458 6.81 -5.239 14.219 7 -1.416 13.396 6.199 -5.549 13.511 9 -4.975
3 16 14.219 7 -1.416 13.458 6.81 -5.239 13.396 6.199 -5.549
5 24 13.396 6.199 -5.549 14.219 7 -1.416 13.396 4 -5.549 13.458 6.81 -5.239
4 16 14.219 4 -1.416 14.219 7 -1.416 13.396 6.199 -5.549 13.396 4 -5.549
5 24 13.458 14.186 -5.239 14.5 17 0 13.396 14.801 -5.549 14.219 7 -1.416
4 16 14.5 17 0 13.396 17 -5.549 13.396 14.801 -5.549 13.458 14.186 -5.239
4 16 14.5 17 0 14.5 21 0 14.775 21.295 -2.939 14.775 17 -2.939
4 16 14.775 17 -2.939 14.775 21.295 -2.939 14.191 21.59 -5.878 14.191 17 -5.878
0

to sum up: it looks like I still lack a proper understanding of cond. lines
:-((( this could also be the reason why I'm in deep trouble with an other
area of the helmet, involving another primitive and a "flouting" edge. have
a look at the code:

0 Minifig Helmet with Thick Chinstrap - Type 2
0 Name: conditional1.ldr
0 Author: Willy Tschager
0 Unofficial Part

0 CATEGORY Minifig Accessory

0 BFC CERTIFY CW

0 Chinstrap Inside Right
4 16 -9.192 17 -9.192 -12.01 17 -4.975 -12.01 21.5 -4.975 -9.192 22.146 -9.192
5 24 -9.192 17 -9.192 -12.01 17 -4.975 -12.01 21.5 -4.975 -10.426 16.688 -7.346
3 16 -12.01 17 -4.975 -9.192 17 -9.192 -10.426 16.688 -7.346
5 24 -10.426 16.688 -7.346 -12.01 17 -4.975 -9.192 17 -9.192 -11.306 15.75
-6.029
3 16 -12.01 17 -4.975 -10.426 16.688 -7.346 -11.306 15.75 -6.029
5 24 -11.306 15.75 -6.029 -12.01 17 -4.975 -10.426 16.688 -7.346 -11.835
14.186 -5.239
3 16 -12.01 17 -4.975 -11.306 15.75 -6.029 -11.835 14.186 -5.239
5 24 -11.835 14.186 -5.239 -12.01 17 -4.975 -11.306 15.75 -6.029 -12.01 12
-4.975
3 16 -12.01 17 -4.975 -11.835 14.186 -5.239 -12.01 12 -4.975
3 16 -12.01 4 -4.975 -12.01 9 -4.975 -11.835 6.812 -5.239
5 24 -11.835 6.812 -5.239 -12.01 4 -4.975 -12.01 9 -4.975 -11.306 5.249 -6.029
3 16 -12.01 4 -4.975 -11.835 6.812 -5.239 -11.306 5.249 -6.029
5 24 -11.306 5.249 -6.029 -12.01 4 -4.975 -11.835 6.812 -5.239 -10.426 4.313
-7.346
3 16 -12.01 4 -4.975 -11.306 5.249 -6.029 -10.426 4.313 -7.346
5 24 -10.426 4.313 -7.346 -12.01 4 -4.975 -11.306 5.249 -6.029 -9.192 4 -9.192
3 16 -12.01 4 -4.975 -10.426 4.313 -7.346 -9.192 4 -9.192
5 24 -12.01 4 -4.975 -12.01 9 -4.975 -11.835 6.812 -5.239 -13 4 0
3 16 -12.01 4 -4.975 -12.01 9 -4.975 -13 4 0
5 24 -13 4 0 -12.01 9 -4.975 -12.01 4 -4.975 -13 21 0
4 16 -12.01 9 -4.975 -12.01 12 -4.975 -13 21 0 -13 4 0
5 24 -12.01 12 -4.975 -13 21 0 -13 4 0 -12.01 17 -4.975
5 24 -12.01 12 -4.975 -12.01 17 -4.975 -11.835 14.186 -5.239 -13 21 0
3 16 -12.01 12 -4.975 -12.01 17 -4.975 -13 21 0
5 24 -13 21 0 -12.01 17 -4.975 -12.01 21 -4.975 -12.01 12 -4.975
5 2 -12.01 17 -4.975 -12.01 21.5 -4.975 -9.192 22.146 -9.192 -13 21 0
3 16 -12.01 17 -4.975 -12.01 21.5 -4.975 -13 21 0
5 24 -12.01 4 -4.975 -12.01 21.5 -4.975 -9.192 22.146 -9.192 -13 4 0
5 24 -12.01 9 -4.975 -12.01 12 -4.975 -9.192 22.146 -9.192 -13 4 0
0 Back Inside
5 24 -13 4 0 -13 21 0 -12.01 4 4.975 -12.01 12 -4.975
0 BFC CERTIFY INVERTNEXT
1 16 0 4 0 13 0 0 0 17 0 0 0 13 2-4cyli.dat
0

initially I used a quad between the cylinder and the beginning of the visor
hole, than I splitted it off into triangles, but still both edges aren't
round. what's wrong? I really would appriciate your helping hand.

bye, willy



Message has 1 Reply:
  Re: Help needed with cond. lines
 
I've created another drawing to help illustrate my descriptions below. Please refer to it while reading below. You can find it here: (...) The edge between the two ndis primitives is empty space. Conditional lines should never be put in empty space. (...) (22 years ago, 3-Apr-03, to lugnet.cad.dat.parts)

Message is in Reply To:
  Re: Help needed with cond. lines  [DAT]
 
(...) While investigating this, I determined two things. First, LDView does have a limitation that causes incorrect rendering of this file, but only when Primitive Substitution is enabled. Based on the way my smoothing code works, it's highly (...) (22 years ago, 31-Mar-03, to lugnet.cad.dat.parts)

9 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR