![]() |
【转帖】block with attribut transformation
block with attribut transformation ...
block with attribut transformation ... to modify some block with attribut i must change the scales factors. when i try that : with a unique factor, it's work fine : l_pblockreference->transformby(odgematrix3d::scaling(2.0, l_pblockreference->position())); but with no egal x,y z factors the transformation don't work : l_pblockreference->transformby(odgematrix3d::scaling(odgescale3d(2.0 ,1.0,1.0), l_pblockreference->position())); no transformation is it normal? thank thierry oddbblockreference::transformby() can be used only with uniscaleortho matrix. this is because attributes can't be scaled non-uniformly. you can use: code: oddbblockreferenceptr newblkref = pblkref->gettransformedcopy(transform); pblkref->handoverto(newblkref); sergey slezkin thank thank you, it's work fine with this. oddbentityptr l_newblkref; odresult l_res = l_pblockreference->gettransformedcopy(l_transform,l_newblkref); l_pblockreference->handoverto(l_newblkref); regards thierry |
所有的时间均为北京时间。 现在的时间是 06:27 PM. |