Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add texture mapping to Meshes #709

Open
IsakNaslundBh opened this issue Oct 4, 2024 · 0 comments · May be fixed by #710
Open

Add texture mapping to Meshes #709

IsakNaslundBh opened this issue Oct 4, 2024 · 0 comments · May be fixed by #710
Assignees
Labels
type:feature New capability or enhancement

Comments

@IsakNaslundBh
Copy link
Contributor

Description:

Currently if a RenderGeometry is being generated and the SurfaceColour Texture is assigned a bitmap texture and the geometry of the RenderGeometry is a mesh, no texture is displayed on the object. After some digging, found that this is due to the mesh converted from BHoM is lacking TextureCoordinates for how to map the texture to the mesh.

Need to add a call to assign those texture coordinates for the display mesh in rhino. A simple box mapping in world coordinates I think is a good enough place to start for this general case, and if we in the future want more control over this, I think we need to add a new class in the Graphics_oM with more properties able to handle this.

as a note, this is only an issue for RenderGeometries with Mesh as geometry. If assigning a surface, the texture mapping is handled automatically by rhino when generating the display mesh.

@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Oct 4, 2024
@IsakNaslundBh IsakNaslundBh self-assigned this Oct 4, 2024
@IsakNaslundBh IsakNaslundBh linked a pull request Oct 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant