Surface unwrap
 1-2  3-22  23-26

Previous
Next
 From:  Michael Gibson
6067.23 In reply to 6067.21 
If you started out with a circular hole on your target surface, it is actually possible though to extract the image of that curve in the UV space of the surface, that would then map back to a circle again if you reflowed it. But for a case like that you would have to start out with a projected cut on your surface to begin with, the usual method of doing flow is that you start with flat objects and then apply them to the object. It's not really possible to easily create the flat distorted version of the circle just by drawing it.

But to extract the UV space curves for a surface's trimming boundary this script will do that:

script: /* Create UV curves of selected faces */ var faces = moi.geometryDatabase.getSelectedObjects().getFaces(); for ( var iFace = 0; iFace < faces.length; ++iFace ) { var face = faces.item(iFace); var edges = face.getEdges(); for ( var iEdge = 0; iEdge < edges.length; ++iEdge ) { var edge = edges.item(iEdge); var uvcrvs = edge.getUVCurvesOfEdge(face); moi.geometryDatabase.addObjects( uvcrvs ); } }

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Andrei Samardac
6067.24 In reply to 6067.23 
>>>>>But to extract the UV space curves for a surface's trimming boundary this script will do that:

script: /* Create UV curves of selected faces */ var faces = moi.geometryDatabase.getSelectedObjects().getFaces(); for ( var iFace = 0; iFace < faces.length; ++iFace ) { var face = faces.item(iFace); var edges = face.getEdges(); for ( var iEdge = 0; iEdge < edges.length; ++iEdge ) { var edge = edges.item(iEdge); var uvcrvs = edge.getUVCurvesOfEdge(face); moi.geometryDatabase.addObjects( uvcrvs ); } }

Michael how it works? I tested it and it creates very small profiles.

-----------------------------------------
Portfolio: www.samardac.tumblr.com
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6067.25 In reply to 6067.24 
Hi Andrei,

> Michael how it works? I tested it and it creates very small profiles.

Every edge has both a 3D curve piece to it which you normally see on the screen, but also in addition to that a 2D curve component for how the edge maps to the UV parameter space of the surface. This script extracts out the UV space curve as a regular curve object.

The UV space curve will be inside of the UV domain rectangle of the surface, it's not unusual for that domain to be a 0 to 1 unit square.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Andrei Samardac
6067.26 In reply to 6067.25 
Thanx)

-----------------------------------------
Portfolio: www.samardac.tumblr.com
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-2  3-22  23-26