|
|
> I suppose recreating the method with autolisp is always an option, though
> not one I relish.
>
> - Grim
Try rather with ObjectARX unless you are familiar with autolisp. For me it
looks like almost impossible task to do something useful with lisp.
Looking on your model I have another idea. It is generally a grating made of
cyllindrical bars. Why not to model only center lines from knot to knot in
Autocad and then use a macro in PovRay to create grating of cyllinders (and
probably spheres) based od this skeleton? You can easily get coordinates of
the lines with Autocad "list" command. This is what we get (copied from
Autocad text window):
LINE Layer: "0"
Space: Model space
Thickness = 10.0000
Handle = 44BB
from point, X=-6949.4255 Y=3165.5131 Z= 0.0000
to point, X=-3260.3316 Y=7146.8069 Z= 0.0000
Length =5427.7172, Angle in XY Plane = 47
Delta X =3689.0939, Delta Y = 3981.2937, Delta Z =
0.0000
LINE Layer: "0"
Space: Model space
Thickness = 10.0000
Handle = 44BE
from point, X=-5510.6789 Y=6040.8920 Z= 0.0000
to point, X=-7834.8080 Y=7183.6707 Z= 0.0000
Length =2589.8880, Angle in XY Plane = 154
Delta X =-2324.1292, Delta Y = 1142.7787, Delta Z =
0.0000
LINE Layer: "0"
Space: Model space
Thickness = 10.0000
Handle = 44BD
from point, X=-6137.8248 Y=8215.8580 Z= 0.0000
to point, X=-4330.1688 Y=7847.2197 Z= 0.0000
Length =1844.8617, Angle in XY Plane = 348
Delta X =1807.6560, Delta Y = -368.6383, Delta Z =
0.0000
LINE Layer: "0"
Press ENTER to continue:
Space: Model space
Thickness = 10.0000
Handle = 44BC
from point, X=-7060.0983 Y=5082.4324 Z= 0.0000
to point, X=-6137.8248 Y=8215.8580 Z= 0.0000
Length =3266.3350, Angle in XY Plane = 74
Delta X = 922.2735, Delta Y = 3133.4256, Delta Z =
0.0000
Then in Pov you can #read this text file string by string. Separators for
values are commas or spaces. So Povray will read each line separatelly or
will put the contents of several lines into one string until first comma
(I'm not sure). Anyway when you find that just loaded string ends with
"from point" it means next you have the string with the coordinates. It
needs a little clean out from white spaces and analyzing to convert string
to x, y and z values. But after that you have ready tables with coordinates
to create model with cyllinders and spheres.
Good luck!
Przemek
Post a reply to this message
|
|