discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] How to write a texture to a face(Solid ) in a geometric model

P
Parkinbot
Wed, Mar 30, 2016 5:31 PM

Nageswara rao wrote

May I know how to get new vertices of polygon which is projected on
surface.3d coordinate?

all you can do is to use this line.

mode = "text";  // uncomment to view/export text only

Nageswara rao wrote

What do you mean by "no winding of a 2D shape around some 3D surface" can
you please explain.

Nageswara rao wrote > May I know how to get new vertices of polygon which is projected on > surface.3d coordinate? all you can do is to use this line. > mode = "text"; // uncomment to view/export text only Nageswara rao wrote > What do you mean by "no winding of a 2D shape around some 3D surface" can > you please explain. <http://forum.openscad.org/file/n16825/jaghcbgg.png> -- View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16825.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NR
Nageswara rao
Thu, Mar 31, 2016 12:51 AM

ok understood.I am developing CAD application using C++ and Qt,OpenGL.How can
I use OpenSCAD futures in my project?

Regards

--
View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16836.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

ok understood.I am developing CAD application using C++ and Qt,OpenGL.How can I use OpenSCAD futures in my project? Regards -- View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16836.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NR
Nageswara rao
Thu, Mar 31, 2016 1:48 AM

Hi Please find the attache screenshot.I have to wrap letter T on 3D model.
http://forum.openscad.org/file/n16838/t.png

--
View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16838.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Please find the attache screenshot.I have to wrap letter T on 3D model. <http://forum.openscad.org/file/n16838/t.png> -- View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16838.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NR
Nageswara rao
Fri, Apr 1, 2016 10:33 AM

The STL mode surface is not flat.is it possible in openscad to wrap(2d
polygon) on uneven 3d surface.? Can anyone provide a solution?

--
View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16883.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

The STL mode surface is not flat.is it possible in openscad to wrap(2d polygon) on uneven 3d surface.? Can anyone provide a solution? -- View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16883.html Sent from the OpenSCAD mailing list archive at Nabble.com.
AP
Andrew Plumb
Fri, Apr 1, 2016 10:45 AM

While not truly wrapping/mapping it onto the surface, you can geometrically generate a masking shape to selectively intersect with other geometry:

https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski.scad https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski.scad

https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski_grid.png https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski_grid.png

In a nutshell, you use minkowski() to grow your target shape by a simple centered cube or sphere, intersect that with your mapping geometry, then union the intersection with the original object.

My little ‘directed_minkowski’ example is one way to control which ‘side’ the mapping happens, so you don’t get mirrored shape on the back-side.

Andrew.

On Apr 1, 2016, at 6:33 AM, Nageswara rao nageswararao.dasari@outlook.com wrote:

The STL mode surface is not flat.is it possible in openscad to wrap(2d
polygon) on uneven 3d surface.? Can anyone provide a solution?

--
View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16883.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--

"The future is already here.  It's just not very evenly distributed" -- William Gibson

Me: http://clothbot.com/wiki/ http://clothbot.com/wiki/

While not truly wrapping/mapping it onto the surface, you can geometrically generate a masking shape to selectively intersect with other geometry: https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski.scad <https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski.scad> https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski_grid.png <https://github.com/clothbot/ClothBotCreations/blob/master/utilities/directed_minkowski_grid.png> In a nutshell, you use minkowski() to grow your target shape by a simple centered cube or sphere, intersect that with your mapping geometry, then union the intersection with the original object. My little ‘directed_minkowski’ example is one way to control which ‘side’ the mapping happens, so you don’t get mirrored shape on the back-side. Andrew. > On Apr 1, 2016, at 6:33 AM, Nageswara rao <nageswararao.dasari@outlook.com> wrote: > > The STL mode surface is not flat.is it possible in openscad to wrap(2d > polygon) on uneven 3d surface.? Can anyone provide a solution? > > > > -- > View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16883.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- "The future is already here. It's just not very evenly distributed" -- William Gibson Me: http://clothbot.com/wiki/ <http://clothbot.com/wiki/>
P
Parkinbot
Fri, Apr 1, 2016 12:15 PM

There is no (trivial) solution for that. OpenSCAD is not equipped for this
and the task is NOT just a snip with two fingers.

You better switch to Blender, 3s Max or a product that supports texturing
first hand.

--
View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16887.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

There is no (trivial) solution for that. OpenSCAD is not equipped for this and the task is NOT just a snip with two fingers. You better switch to Blender, 3s Max or a product that supports texturing first hand. -- View this message in context: http://forum.openscad.org/How-to-write-a-texture-to-a-face-Solid-in-a-geometric-model-tp16718p16887.html Sent from the OpenSCAD mailing list archive at Nabble.com.