Get the direction of a texture

Get the direction of a texture

ngocson8335
Advocate Advocate
280 Views
1 Reply
Message 1 of 2

Get the direction of a texture

ngocson8335
Advocate
Advocate

Hello Everyone,

 

I would like to get the direction of the texture of a solid such as parallel with the X-axis,... Is there any way to do that?

 

Please help me in this case.

 

Many thanks.

Ngoc Son
Autodesk User
0 Likes
281 Views
1 Reply
Reply (1)
Message 2 of 2

marcin_otręba
Advisor
Advisor

try this:

 

SurfaceBody.GetAppearanceTextureMappingData( TextureMappingType As TextureMappingTypeEnum, [TextureMappingAlignment] As Variant )

Parameters

NameTypeDescription
TextureMappingTypeTextureMappingTypeEnumOutput texture mapping type applied to the object.
TextureMappingAlignmentVariantOutput unit vector that indicates the texture mapping alignment. This value will be invalid if the TextureMappingType is not kCylindricalMappingType or kSphericalMappingType.

This is an optional argument whose default value is null.

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes