# cee::geo::EffectFrontAndBackOpacity

class `EffectFrontAndBackOpacity` : public Effect

  Effect describing the opacity to be used when drawing each side of the associated triangle based part data.

  May be overridden by the following effects if found further up the stack:

  - EffectOpacity
  - Any other EffectFrontAndBackOpacity

  Supported by the following part data:

  - DataIndexedTriangles
  - DataTriangleFan
  - DataTriangleStrip

  See also

  Part, Effect, and PartSettings

  Public Functions

  `EffectFrontAndBackOpacity`()

    Constructs an empty effect.

  `EffectFrontAndBackOpacity`(float frontOpacity, float backOpacity)

    Constructs an effect.

  virtual Type `type`() const

    Returns Effect::FRONT_AND_BACK_OPACITY.

  virtual PtrRef<Effect> `clone`()

    Clones the effect.

  float `frontOpacity`() const

    Returns how transparent the front face of the part is.

    1.0f is opaque 0.0f is max transparency

  float `backOpacity`() const

    Returns how transparent the back face of the part is.

    1.0f is opaque 0.0f is max transparency

  void `setOpacity`(float frontOpacity, float backOpacity)

    Specifies how transparent the front and back faces of the part are.

    1.0f is opaque 0.0f is max transparency

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...