查看单个帖子
旧 2009-05-04, 04:52 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)