RhinoCommon: How to create an OCS texture mapping?

@nathanletwory I’m using Mesh.WithDisplacement Method to compute a mesh with a MeshDisplacementInformation object but I didn’t find a way to create a TextureMapping Class with a Mapping of type OcsMapping.

There are only 7 static methods but none creates one of type OcsMapping.

Is there any way to create a TextureMapping with a MappingType of OcsMapping?

Regards!

I’ll have to do some investigation here, I haven’t had the need to create one via code yet.

Very, very quick glance would lead me to believe that hasn’t been wrapped at this moment, but I will check.

Addendum: I logged RH-67578 Impossible to create TextureMapping of type OcsMapping.

1 Like

Thanks!

Yes - this is an oversight in the SDK. I will add it right now.

1 Like

Thanks so much @nathanletwory @andy

We would be able to use both options?

  • WCS/OCS
  • WCS/OCS (Box style)

Regards,

Yes.

Hi @andy and @nathanletwory ,

I was able to get the both WCS/OCS and WCS/OCS (Box) within Rhinocommon!

Thanks so much! Waiting for 7.17 to implement it :smiley:

Regards,

1 Like

RH-67578 is fixed in Rhino 7 Service Release 17 Release Candidate

Can we get screen mapping too!?

Can you please start a new topic with more details about what you’re asking about?