Post

FillProperties

Overview

FillProperties indicates whether appearance is filled or hatched for associated geometry nodes inside the same Shape. Hatches are applied on top of the already rendered appearance of the node, and are not affected by lighting.

The FillProperties node belongs to the Shape component and requires at least level 3, its default container field is fillProperties. It is available from X3D version 3.0 or higher.

Hierarchy

1
2
3
+ X3DNode
  + X3DAppearanceChildNode
    + FillProperties

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFBool [in, out] filled TRUE

Whether or not associated geometry is filled.

SFBool [in, out] hatched TRUE

Whether or not associated geometry is hatched.

SFInt32 [in, out] hatchStyle 1 [0,∞)

hatchStyle selects a hatch pattern from ISO/IEC 9973 International Register of Graphical Items. 1=Horizontal equally spaced parallel lines. 2=Vertical equally spaced parallel lines. 3=Positive slope equally spaced parallel lines. 4=Negative slope equally spaced parallel lines. 5=Horizontal/vertical crosshatch. 6=Positive slope/negative slope crosshatch. 7=(cast iron or malleable iron and general use for all materials). 8=(steel). 9=(bronze, brass, copper, and compositions). 10=(white metal, zinc, lead, babbit, and alloys). 11=(magnesium, aluminum, and aluminum alloys). 12=(rubber, plastic, and electrical insulation). 13=(cork, felt, fabric, leather, and fibre). 14=(thermal insulation). 15=(titanium and refi-actory material). 16=(marble, slate, porcelain, glass, etc.). 17=(earth). 18=(sand). 19=(repeating dot).

Hint

SFColor [in, out] hatchColor 1 1 1 [0,1]

Color of the hatch pattern.

Advice

Hint

  • DEF/USE copies of a single node can provide a similar “look + feel” style for related shapes in a scene.

Warning

  • Requires X3D profile='Full' or else include <component name='Shape' level='3'/>

Example

See Also

This post is licensed under CC BY 4.0 by the author.