NOTES‎ > ‎

Hotspot 2d a,b editing(GRAPHISOFT)

========================================================================
Описание: 4 динамических хотспота, редактирующие длину и ширину объекта. Фрагмент кода Graphisoft

a) 

call "Resize_A_B_ZZYZX" parameters all
 
б)
 
! ============== A, B intelligent stretching ====  GRAPHISOFT ====
! 2D Bounding Box Intelligent Stretching
! bab - 06/25/2002

unID = GS_HotspotUnIDBegin
!!!!!!!!!!!!!!!! Make Length stretchable
HOTSPOT2 0, 0, unID, A, 1+256: unID=unID+1
HOTSPOT2 -0.001, 0, unID, A, 3+128: unID=unID+1
HOTSPOT2 A, 0, unID, A, 2: unID=unID+1
HOTSPOT2 0, B, unID, A, 1+256: unID=unID+1
HOTSPOT2 -0.001, B, unID, A, 3+128: unID=unID+1
HOTSPOT2 A, B, unID, A, 2: unID=unID+1

!!!!!!!!!!!!!!!! Make Width stretchable
HOTSPOT2 0, 0, unID, B, 1+256: unID=unID+1
HOTSPOT2 0, -0.001, unID, B, 3+128: unID=unID+1
HOTSPOT2 0, B, unID, B, 2: unID=unID+1
HOTSPOT2 A, 0, unID, B, 1+256: unID=unID+1
HOTSPOT2 A, -0.001, unID, B, 3+128: unID=unID+1
HOTSPOT2 A, B, unID, B, 2: unID=unID+1