|
|
Here are some MaxScripts which I developed.
|
|
WrapperWraps one object around another. Example: Wrapper Mesh, Test Text (Red object) has been extruded and placed above a squashed GeoSphere. 'Straight Projection' on left, 'Curve to Surface' on right with an offset. See details of Wrapper
|
Contour CreatorCreates a series of contours from a selected mesh. |
|
|
Fuse n' WeldTakes all vertices in a shape, compares them to their closest neighbor
and moves them to an average position if within the threshold. |
Refine Spline Adaptively adds extra points to a shape while retaining the shape's
existing points and curvature. Most useful if a curve's vertices are
converted to corner, or if in our case you're doing point to point machining. |
|
Optimize Spline Adaptively removes points from a curve while retaining the shape's
existing curvature.
|
|
Project SplineProjects a spline onto the surface of a mesh. |
|
Spline IntersectionFinds where a spline crosses over itself or another spline. Adds vertexes to intersection points. |
|
Preview ToolpathPreviews finished CNC cut for a given path, tool and material block Status: Under Development. |
Wraps one object around the surface of another while retaining the depth
or body of the wrapping object.
Wraps either Splines or Meshes and incorporates my previous scripts, Mesh
Drape and Project Spline
|
Interface:Source Object: This is the object that gets wrapped. Press the 'Pick' button then click on the object that you want to wrap. Target Surface: The object whose surface curvature you want to wrap the Source Object to. Press the 'Pick' button then click on the object that you want to wrap onto. Operation: Pick Source Object and Target Surface, place Source
Object on top of Target Surface, ensure that the base of the Source
Object is at or above height Z=0, adjust offset by increasing height
above 0. |
|
Examples:Create an object in the top viewport, this can be a spline as in the
text seen here, or a mesh object ( just add an extrude modifier to the
text example to see this ) |
|
Curve to Surface:
Straight Projection: Projects the Source Object down onto the Target Surface. Conform to Surface: Flattens the Source Object onto the Target Surface. Similar to the 'Conform Compound Object' in MAX.
|
Use UVW Mapping:A two-stage process that takes a Target Surface (the torus on left) and unwraps it when the 'Use UVW Mapping' option is chosen into a flat mesh representation or proxy for use as a reference to position the Source Object
Bottom: White Helix spline shape
|
|
Show Normals:Creates a Spline which shows the Normal vectors or direction of the Target Surface used for UVW Mapping. Red Helix has been wrapped to the Sphere resulting in a White Wrapped Helix and a Blue Spline showing the relative Normals. |
|
Limitations of Wrapper: All of Source Object must be above height Z=0 |
|
Acknowlegements:Thanks to Jared Keller and Swami Lama for their help and pointers on
the Barycentric Coords stuff |
Links to other sites you may find of interest.
MAX 3D - Info and news
on 3D Studio MAX
Scriptspot - Great site
with database of MAXScripts along with info and links
Bobo's Page - MAXScript
site
Paul Bourke - Explanations and code examples of many graphic concepts
Geometry
in Action
Algorithm Archive
Computational
Geometry Resources
comp.graphics.algorithms
FAQs
Directory
of Computational Geometry Software
CGAL
Graphic Gems - Great source of example code
Computational Geometry Pages
The Geometry
Junkyard