# Hatch problem

## Recommended Posts

Hello,

Nice to meet you all, hope you can help me with this hatch.

I have to make a hatch to represent wine property. I have shown the dimensions and how it should look like in the attached files. I was able to make it up to one point, when I have to represent the oblique lines. They don't fit right.

This is the code:

*winery

90, 0, 0, 5, 5, 1, -9

90, 0.75, -1, 5, 5, 3, -7

90, 1.5, -1, 5, 5, 0.5, -9.5

90, 1.5, 1.5, 5, 5, 0.5, -9.5

18, 0, 1, 5, 6, 1.5811, -15

##### Share on other sites

Possibly something like this

```*winery
90, 0, 0, 5, 5, 1, -9
90, 0.75, -1, 5, 5, 3, -7
90, 1.5, -1, 5, 5, 0.5, -9.5
90, 1.5, 1.5, 5, 5, 0.5, -9.5
18.43895, 0, 1, 6.3248, 3.1622, 1.5811, -14.2303
-18.43895, 0, 0, 9.4868, 3.1622, 1.5811, -14.2303
```

##### Share on other sites

Thanks so much, it works! I see now where I went wrong. And I also discovered that I forgot to set a number of decimals for angle precision, which is one of the reasons why those lines were flying on my drawing.

##### Share on other sites

I am happy that you can see where the problem was

##### Share on other sites

Another thing that I should mention. is to keep the hatch origin near the hatched area.

It seems that with all hatch definitions that use a non-integer angle, the further away from the hatch origin you get, there is a displacement, due to the angle and the x,y offsets not being defined with enough decimal places. A prime example is the Gravel hatch, which only has the non-integer angles defined to 4 decimal places. This produces results with the shape lines not being together

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
×
• Create New...