scaling during vectorization
scaling during vectorization
hi,
i have a couple of questions reagrding views:
1. duing import of a dxf/dwg file in my application, i would like to receive all entities without any scaling being applied. i.e. in screen coordinates.
so if there is a line from 0,0,0 to 100,100,0 in dwg file and the view is set to "top view"(i.e.normal = 0,0,1), then dd should give me these points as it is during vectorization. i would like dd to convert the wcs coordinates to screen coordinates, but no other tranformation should be applied.
is there a way to do this?
2. what will happen if odgsdevice:

nsize() function is not called. how would the entities be vectorized then?
3. how can i make all entities in a drawing to fit a particular area? i do not want viewport clipping. i.e. all entities in the drawing should be vectorized from the active view and should fit in a particular area.
please provide some pointers for the above questions.
tia
alex
last edited by alex30; 21st october 2005 at 01:34 pmfff">.
1. dd vectorization pipeline by default doesn't apply any transforms to input wcs geometry, except taking block (model->world) and world->eye transforms into account.
additional transform can be established by odgibasevectorizer::seteyetooutputtransform function.
2. they won't be vectorized, since dd will notice that device output area is empty.
3. you should look to "zoom extents" functionality (see cdwgviewer:

nviewzoomextents(), dwgviewer.cpp, odamfcapp sample).
sincerely yours,
george udov
okay...so it means onsize call has to be always there during vectorization.
assuming that i have an infinite device area..how can i ask dd to vectorize the geometry and just apply the eye2screen transformation??
because if onsize() has to be called, then dd would always apply some scaling depending on the device area specified in the onsize argument!!.
i wanted to give the user an option to render their dxf/dwg files after just applying eye2screen transformation.
it seems this is not possible in dd.
please correct me if i am wrong.
are there any workarounds??
last edited by pareshgoel; 9th november 2005 at 10:08 pmfff">.
pareshgoel, please study our singledoc and odamfcapp samples.
sincerely yours,
george udov