Author Topic: Anyone know of hatch tools that will work for this?  (Read 1216 times)

0 Members and 1 Guest are viewing this topic.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Anyone know of hatch tools that will work for this?
« on: April 23, 2016, 07:13:03 PM »
someone thoughtlessly put a thousand verts in a file (exploded a spline) and hatched them.   I need to clean that file up. Anyone have a tool for that already (something that will weed out unnecessary points from a hatch)?   I know I can regenerate boundaries, weed them manually, then rehatch everything...hoping someone will have a tool that will spare me the effort.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Anyone know of hatch tools that will work for this?
« Reply #1 on: April 23, 2016, 07:22:19 PM »
Create a sample of the problem in a new DWG file & post it.
Someone may create a new tool for you or have a method that works.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Anyone know of hatch tools that will work for this?
« Reply #2 on: April 23, 2016, 07:33:40 PM »
Good idea CAB...thanks!

ribarm

  • Gator
  • Posts: 3309
  • Marko Ribar, architect
Re: Anyone know of hatch tools that will work for this?
« Reply #3 on: April 24, 2016, 03:17:56 AM »
I thought you would write inside DWG what do you want to do with those SOLID hatches... So what are you looking for - recreating boundaries...???
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

ymg

  • Guest
Re: Anyone know of hatch tools that will work for this?
« Reply #4 on: April 24, 2016, 05:06:52 AM »
Alien,

As Marko stated your intent is not clear.

If it is reducing the number of vertices, there is
polyline-diet by Kent Cooper
on the the Cadalyst site.

You'll still need to recreates the boundaries with hatchedit.

On your sample drawing, with a setting of 3.0 as max distance
and 15 for max angle, poly was reduced from 504 segments
to 52 segments.

 Original:  Area = 297.7410, Perimeter = 100.7526
Reduced:  Area = 297.1917, Perimeter = 100.4503

To rebuild the spline, you would need a spline-curve fitter
David Eberly has a paper and some C source code to do this,
 you can find it at:
         Paper    http://www.geometrictools.com/Documentation/BSplineCurveLeastSquaresFit.pdf
         Code    http://www.geometrictools.com/GTEngine/Include/Mathematics/GteBSplineCurveFit.h

ymg
« Last Edit: April 24, 2016, 05:30:22 AM by ymg »

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Anyone know of hatch tools that will work for this?
« Reply #5 on: April 24, 2016, 10:44:12 AM »


(couldn't resist)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ymg

  • Guest
Re: Anyone know of hatch tools that will work for this?
« Reply #6 on: April 24, 2016, 11:36:36 AM »
MP,

I guess it the middle ground between Extrovert and Introvert.  :?

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Anyone know of hatch tools that will work for this?
« Reply #7 on: April 24, 2016, 11:07:28 PM »
Hey all. Hopefully this clears it up.

Through code, is there a way to reduce the number of verticies that make up a solid hatch?  There are far too many in the hatches in the drawing.

I'd prefer to skip regenerating hatch boundaries, weeding, and rehatching if at all possible.