Loading...
Searching...
No Matches
mesh::SimplificationFeature Struct Reference

One source constraint, an open polyline or a ring, given to simplifyConstraints(). More...

#include <mesh/constraintsimplifier.h>

Collaboration diagram for mesh::SimplificationFeature:

Public Types

enum class  Role {
  Line ,
  Domain ,
  Hole ,
  Protected
}
 Meaning of the feature for the delivered-mesh audit; ignored by the simplifier. More...
 

Public Attributes

QString id
 Caller identifier, copied to SimplificationChange::id and error prefixes.
 
QVector< QPointF > xy
 Vertices in the common planar frame; all must be finite.
 
QVector< double > z
 Elevations parallel to xy; a repeated closing vertex must repeat its elevation.
 
QVector< bool > fixed
 Per-vertex flags parallel to xy; a flagged vertex is never removed.
 
bool closed = false
 Treat the feature as a ring even without a repeated closing vertex.
 
ConstraintSimplificationPolicy policy
 Limits for this feature; validated before use.
 
enum mesh::SimplificationFeature::Role role = Role::Line
 Feature role; Role::Line by default.
 
int marker = 0
 Boundary marker; when nonzero, the mesh audit matches only this marker.
 
bool requiredInMesh = true
 False makes the delivered-mesh audit skip it.
 
QString label
 Display label; makeConstraintPreview() falls back to id when it is empty.
 

Detailed Description

One source constraint, an open polyline or a ring, given to simplifyConstraints().

A feature is a ring when closed is true or when its first and last XY vertices are exactly equal; a repeated closing vertex is optional and is reproduced in the output. role, marker, requiredInMesh and label are not used by the simplifier; they are carried through unchanged for the constraint audits and the caller.

Member Enumeration Documentation

◆ Role

Meaning of the feature for the delivered-mesh audit; ignored by the simplifier.

Enumerator
Line 

Ordinary constraint path.

Domain 

Domain outer ring; the mesh audit requires its cells on the inner side.

Hole 

Hole ring; the mesh audit requires its cells on the outer side.

Protected 

Protected outline, such as a region or fixed-patch boundary; the mesh audit treats it like Line, without a side check.

Member Data Documentation

◆ closed

bool mesh::SimplificationFeature::closed = false

Treat the feature as a ring even without a repeated closing vertex.

◆ fixed

QVector<bool> mesh::SimplificationFeature::fixed

Per-vertex flags parallel to xy; a flagged vertex is never removed.

◆ id

QString mesh::SimplificationFeature::id

Caller identifier, copied to SimplificationChange::id and error prefixes.

◆ label

QString mesh::SimplificationFeature::label

Display label; makeConstraintPreview() falls back to id when it is empty.

◆ marker

int mesh::SimplificationFeature::marker = 0

Boundary marker; when nonzero, the mesh audit matches only this marker.

◆ policy

ConstraintSimplificationPolicy mesh::SimplificationFeature::policy

Limits for this feature; validated before use.

◆ requiredInMesh

bool mesh::SimplificationFeature::requiredInMesh = true

False makes the delivered-mesh audit skip it.

◆ role

enum mesh::SimplificationFeature::Role mesh::SimplificationFeature::role = Role::Line

Feature role; Role::Line by default.

◆ xy

QVector<QPointF> mesh::SimplificationFeature::xy

Vertices in the common planar frame; all must be finite.

◆ z

QVector<double> mesh::SimplificationFeature::z

Elevations parallel to xy; a repeated closing vertex must repeat its elevation.


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