Function Reference: Volume 2 (F-O) - The MathWorks - #651

/ 1568


catalogue search
P. 651
P. 652
P. 653
P. 654
P. 655
P. 656
P. 657
P. 658
P. 659
P. 660
P. 661
P. 662
P. 663
P. 664
P. 665
P. 666
P. 667
P. 668
P. 669
P. 670
P. 671
P. 672
P. 673
P. 674
P. 675
P. 676
P. 677
P. 678
P. 679
P. 680
P. 681
P. 682
P. 683
P. 684
P. 685
P. 686
P. 687
P. 688
P. 689
P. 690
P. 691
P. 692
P. 693
P. 694
P. 695
P. 696
P. 697
P. 698
P. 699
P. 700


See other catalogues for The MathWorks

Text version of the page
hgtransform
• You cannot transform image objects because images are not true 3-D objects. Texture mapping the image data to a surface CData enables you to produce the effect of transforming an image in 3-D space.
Note Many plotting functions clear the axes (i.e., remove axes children) before drawing the graph. Clearing the axes also deletes any hgtransform objects in the axes.
More Information
• The references in the "See Also" on page 2-1599 section for information on types of transforms
• The "Examples" on page 2-1595 section provides examples that illustrate the use of transforms.
Examples Transforming a Group of Objects
This example shows how to create a 3-D star with a group of surface objects parented to a single hgtransform object. The hgtransform object is then rotated about the z-axis while its size is scaled.
Note If you are using the MATLAB help browser, you can run this example or open it in the MATLAB editor.
Create an axes and adjust the view. Set the axes limits to prevent auto limit selection during scaling.
ax = axes('XLim',[-1.5 1.5],'YLim',[-1.5 1.5],...
'ZLim',[-1.5 1.5]); view(3); grid on; axis equal
Create the objects you want to parent to the hgtransform object.
[x y z] = cylinder([.2 0]);
2-1595

pageCatalog pdf di En 2012-06-22-01