Could I modify the Repeat value in Rhino.DocObjects.TextureUvwWrapping.Repeat


#1

I want to use the WrapU function to change my texture,but the value “Repeat” seem could not be
change? who can help me?


(Nathan 'jesterKing' Letwory) #4

Hi @jerry1,
WrapU, WrapV and WrapW can be set to one of the two values of the TextureUvwWrapping enumeration: TextureUvwWrapping.Repeat or TextureUvwWrapping.Clamp. So you can set any of the wrapping direction (U, V, W) to either Repeat or Clamp.

If you want to change the repeat amount you should change the scale of the UvwTransform property, and set ApplyUvwTransform to true.

Does this information help you, or do you need more?
/Nathan


#5

many thanks. I got it, using scale function already solve my problem


(Nathan 'jesterKing' Letwory) #6

Cool. Enjoy developing code for Rhino! (:

/Nathan