Hi Aleander,

here's a simple example for a POLYLINE entity which always crashes the viewer. BLOCK could be interesting for grouping...

Greets,

Patrik


Alexander Rettig wrote:

Hi Dirk, Hi Sandra,

Dirk is right in that currently the DXF Loader just supports a very few entitiy types as it was started to read special archaeological data. Currently only the geometries POLYLINE and LINE are supported and partly the structural entities BLOCK and LAYER, some more element types are understood but simply ignored, since I didn't see a obvious mapping to OpenSG structures (I'm not a DXF specialist, I have to admit). I'd be very interested in opinions about this mapping and suggest to start some discussion on the OpenSG-Wiki (what do you think about that, Dirk?). Thus see the current DXF loader as an starting point, not as a solution please, and participate ;-) To make the latter possible, I have to check the documentation (there is some doxygen documentation for the DXF loader already) and make things more clear most likely (comments welcome!). Unfortunately I will be on vacation for two weeks from now on, I won't be able to do it before.

Alex

>    Hi Sandra,
>
> On Wed, 2004-08-18 at 08:02, Sandra Helsper wrote:
>
>> Hi
>>
>> I have a problem with dxf files. I use SceneFileHandler::the().read to
>> load the files. But all it returns is an empty scene. I have tested
>> several files with the same result. They are quiet different. They
>> contain 2D as well as 3D information and also different element types.
>>
>> An example file is available
>> http://www.graphix.de/dxfFile/vermasch_50.dxf
>> And also an screenshot how it should look like
>> http://www.graphix.de/dxfFile/dxfsurface.jpg
>> It is a 3D file and includes only LINE Elements.
>>
>> I have also other files where the import is partly successful, means not >> all of the elements are loaded, but some of them. So how far is the dxf
>> import implemented? Which elements are supported?
>> I'm grateful for all information.


> The DXF loader was written for a specific project that deals with
> archeology data, and therefore is probably not anywhere near complete.
> Which is a pretty hard goal for DXF anyway, as it has so many
> different
> elements with varying interpretations. Looking at the source, I think
> these are the understood tags:

> APPID
> BLOCK
> BLOCK_RECORD
> BLOCKS
> DIMSTYLE
> ENTITIES
> HEADER
> INSERT
> LAYER
> LINE
> LTYPE
> POLYLINE
> STYLE
> TABLES
> UCS
> VERTEX
> VIEW
> VPORT

> I have no idea how complete the support for the different variants of
> these is, though.

> It was written with extensibility in mind, so it shouldn't be a big
> problem to add support for new ones, but I don't have a good
> description
> of how to do that. Alex, can you write a short intro on what to derive
> from and what to override for a new tag?

> Thanks

>     Dirk







-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users


--
Patrik Müller

KiM GmbH
Konstruktion & Internet im Maschinenbau
Kapellenweg 31
66606 St. Wendel
Fon: ++49 (0)6851 / 869506
Fax: ++49 (0)6851 / 869504
[EMAIL PROTECTED]
www.cadclick.de

0
SECTION
2
HEADER
9
$ACADVER
1
AC1009
9
$INSBASE
10
0.0
20
0.0
30
0.0
9
$EXTMIN
10
0.000000
20
0.000000
30
0.000000
9
$EXTMAX
10
0.000000
20
0.000000
30
0.000000
9
$UCSORG
10
0.0
20
0.0
30
0.0
9
$UCSXDIR
10
1.0
20
0.0
30
0.0
9
$UCSYDIR
10
0.0
20
1.0
30
0.0
9
$CLAYER
8
0
9
$SHADEDGE
70
3
0
ENDSEC
0
SECTION
2
TABLES
0
TABLE
2
LTYPE
70
2
0
LTYPE
2
CONTINUOUS
70
0
3
Solid line
72
65
73
0
40
0.0
0
ENDTAB
0
TABLE
2
LAYER
70
5
0
LAYER
2
0
70
0
62
7
6
CONTINUOUS
0
ENDTAB
0
TABLE
2
APPID
70
1
0
APPID
2
ACAD
70
64
0
ENDTAB
0
ENDSEC
0
SECTION
2
BLOCKS
0
ENDSEC
0
SECTION
2
ENTITIES
0
POLYLINE
66
1
8
0
6
CONTINUOUS
62
252
70
64
75
0
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
0.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
1.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
1.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
0.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
2
72
3
73
1
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
1
72
3
73
4
0
SEQEND
0
POLYLINE
66
1
8
0
6
CONTINUOUS
62
252
70
64
75
0
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
1.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
1.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
2
72
3
73
1
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
1
72
3
73
4
0
SEQEND
0
POLYLINE
66
1
8
0
6
CONTINUOUS
62
252
70
64
75
0
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
0.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
0.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
1
72
2
73
4
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
4
72
2
73
3
0
SEQEND
0
POLYLINE
66
1
8
0
6
CONTINUOUS
62
252
70
64
75
0
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
1.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
1.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
0.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
1
72
2
73
4
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
4
72
2
73
3
0
SEQEND
0
POLYLINE
66
1
8
0
6
CONTINUOUS
62
252
70
64
75
0
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
1.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
1.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
1.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
0.000000
20
1.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
1
72
2
73
4
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
4
72
2
73
3
0
SEQEND
0
POLYLINE
66
1
8
0
6
CONTINUOUS
62
252
70
64
75
0
10
0.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
0.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
0.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
1.000000
30
0.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
192
10
1.000000
20
1.000000
30
1.000000
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
1
72
2
73
4
0
VERTEX
8
0
6
CONTINUOUS
62
252
70
128
10
0.000000
20
0.000000
30
0.000000
71
4
72
2
73
3
0
SEQEND
0
ENDSEC
0
EOF

Reply via email to