Rasterfarm-SDK
Loading...
Searching...
No Matches
Shape::Wire::Attribute Class Reference

#include <wire.h>

Public Member Functions

 Attribute (const Vertex3fArray &vertex, bool contour, uint depthResolution=1, float texelSize=0.5f)
 
 Attribute (const Vertex3fArray &vertex, float texelSize=0.5f)
 

Public Attributes

bool contour
 
uint depthResolution
 
Vertex3fArray vertex
 
float texelSize
 

Constructor & Destructor Documentation

◆ Attribute() [1/2]

Shape::Wire::Attribute::Attribute ( const Vertex3fArray & vertex,
bool contour,
uint depthResolution = 1,
float texelSize = 0.5f )
Parameters
Anarray of vertices to for line-segments.
Indicatethat the vertex-array is a contour producing vertex.size() segments.
Theresolution of the 3D-wire representing the line. A resolution of 1 will produce a quad. A resolution of 3 will produce a cuboid.

◆ Attribute() [2/2]

Shape::Wire::Attribute::Attribute ( const Vertex3fArray & vertex,
float texelSize = 0.5f )

Best choice for drawing 2d line-primitives, as depth is not defined.

Member Data Documentation

◆ contour

bool Shape::Wire::Attribute::contour

Indicates the vertex-data forms a contour and will produce vertex.size() line segments.

◆ depthResolution

uint Shape::Wire::Attribute::depthResolution

Defines the resolution for the 3D wire(cylinder) shape. A resolution of 4 would create a cuboid. For 2D-lines this will be zero.

◆ texelSize

float Shape::Wire::Attribute::texelSize

For lines implemented as capsules.

◆ vertex

Vertex3fArray Shape::Wire::Attribute::vertex

The documentation for this class was generated from the following file: