M
by Massimo on 14 Feb 2024
#
+1 votes
@JanF thanks, it definitely works! Maybe there is a more elegant way to archive that, but this is already a good result!
@Bimlooser thanks, can you share also the patterns.svg file?
So basically, if i understand correctly, it is possible to add a second class to the material (in this case PsetCommonStatus) and add the relative pattern with the desired style
style.css
.material-brick.PsetCommonStatus-DEMOLISH {fill: url(#brickdemolish); stroke: red; }
patterns.svg
<pattern id="brickdemolish" width="3" height="3" patternTransform="rotate(45 0 0)" patternUnits="userSpaceOnUse">
<path style="fill: transparent;" d="M 0 0 3 0 3 3 0 3" />
<line x1="1" y1="0" x2="1" y2="3" style="stroke:red; stroke-width:0.25" />
<line x1="2" y1="0" x2="2" y2="3" style="stroke:red; stroke-width:0.25" />
</pattern>
and here is the result
!
i attach also the files