← All bug reports

FS#465hatch with pattern empty (solid ok)

Type
Bug
Status
Closed
Resolution
Won't fix
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3 RC2
Operating system
All
Reported
2012-01-15 by stefan
Closed
2012-01-18 by andrew

valid hatch is not visible if filled with pattern instead of solid fill

Comments (12)

andrew 2012-01-15

Please check that you are not in draft mode (View - Draft Mode) and that the pattern scale is not too large or too small.

stefan 2012-01-15

Checked both (not appropriate, problem persists). Attached you find a stripped dxf to test and another, most likely interrelated problem if upper right corner point of hatch is moved (partial area disappears, correct displayed area is created through copy-paste from other drawing).

andrew 2012-01-15

Seems to work fine here:

  1. Make sure Property Editor is visible
  2. Select hatch entity
  3. Change property "Solid" from yes to no
  4. Change pattern name to the desired pattern name

I suppose step 4 could have been the problem.
Please add comment if problem persists.

stefan 2012-01-15

Tried both
- changing "solid" from yes to no with selecting pattern name after successful (!) creation
- selecting pattern during creation
with always the same result: solid ok, pattern not visible.

If surrounding lines are selected and copied to another (new) drawing, everything works as expected. Copying the pattern-filled area back to the original drawing, the area is
- either displayed correctly - if and only if the corner points of the filled area are not on the original lines,
- or not shown at all - if a corner point of the filled area is on one of the original lines.

stefan 2012-01-15

Attached you find a screen record for the copy+paste+disappear-thing if the corner point of the pattern-filled is on an original line.
Recorded action is:
select all, hatch solid - ok - remove
select all, hatch pattern - not shown - undo
select all, copy with reference, create new drawing, paste, hatch pattern - ok
mark pattern area, copy with reference (upper right point), paste in original drawing, switching between snapfree (ok) / snapend (area disappears) toggles visibility of filled area

andrew 2012-01-15

This is very likely also connected to the drawing entities not being 2D (Z coordinates != 0).

stefan 2012-01-16

Confirmed, thank you very much for your support and the suggested modification of PropertyEditor.js!

After changing Z-coordinate of lines to 0 everything works as expected.

stefan 2012-01-16

unfortunately, after saving and re-opening the pattern-filled object is removed (not invisible, it is not existing; inserted as single object on new layer, layer is empty after re-open)

stefan 2012-01-16

After some more testing it seems that the original data had everything with Z=0. Copy+Paste with paste in a new drawing results in Z=-13.6... which caused the problems of pattern-hatch and select-impossible.

How can I help to burn down this bug?

stefan 2012-01-17

After more testing, it seems that a solid triangle causes trouble, perhaps correlated to Z-coordinates and the property editor.

Attached you find a dxf example file with only 7 objects. Three noticable cases:
- Selecting all and change Selection in the property editor to "Solid" flips to "No Selection" although objects selected.
- Selecting all and change Selection in the property editor to "Line" shows "Length" and "Angle" in Geometry with "*VARIES*" values although only one line is selected.
- Selecting all but the solid object (6 objects selected now), everything works as expected, in particular Selection "Line" shows valid values (and Z-coordinate 0).

I hope this helps, please give instructions how to help if necessary.

andrew 2012-01-18

The last comment seems to be a separate issue and has been split into FS#469

andrew 2012-01-18

Comment from Monday, 16 January 2012, 19:08 GMT has been split into FS#470

Closure comment

Behavior due to Z coordinate !=0. Separate issues from comments split into new tasks.