Home FillProperties
X_ite
Cancel

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 its default container field is fillProperties. It is available since X3D version 3.0 or later.

Hierarchy

1
2
3
+ X3DNode
  + X3DAppearanceChildNode
    + FillProperties

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

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 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.

Description

Hints

  • DEF/USE copies of a single node can provide a similar “look + feel” style for related shapes in a scene.
  • Include <component name='Shape' level='3'/>

Example

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