BRL-CAD
Loading...
Searching...
No Matches
quality.h
Go to the documentation of this file.
1/* Q U A L I T Y . H
2 * BRL-CAD
3 *
4 * Copyright (c) 2026 United States Government as represented by
5 * the U.S. Army Research Laboratory.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * version 2.1 as published by the Free Software Foundation.
10 *
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this file; see the file named COPYING for more
18 * information.
19 */
20/** @file brep/quality.h */
21#ifndef BREP_QUALITY_H
22#define BREP_QUALITY_H
23
24#include "common.h"
25
26#include "bu/vls.h"
27#include "brep/defines.h"
28
29#ifdef __cplusplus
30extern "C++" {
31
32class ON_Brep;
33
43
44BREP_EXPORT extern void
46
47/**
48 * Run geometry quality checks that are stricter than ON_Brep::IsValid().
49 *
50 * Returns the number of hard errors found. Warnings, including conservative
51 * self-intersection-risk notices, are written to msgs when supplied but do not
52 * contribute to the return value.
53 */
54BREP_EXPORT extern int
55ON_Brep_Quality_Check(const ON_Brep *brep, struct bu_vls *msgs, const struct brep_quality_options *opts);
56
57}
58#endif
59
60#endif /* BREP_QUALITY_H */
61/*
62 * Local Variables:
63 * mode: C++
64 * tab-width: 8
65 * indent-tabs-mode: t
66 * c-file-style: "stroustrup"
67 * End:
68 * ex: shiftwidth=4 tabstop=8
69 */
Definition dvec.h:74
Header file for the BRL-CAD common definitions.
int ON_Brep_Quality_Check(const ON_Brep *brep, struct bu_vls *msgs, const struct brep_quality_options *opts)
void ON_Brep_Quality_Defaults(struct brep_quality_options *opts)
double min_edge_length
Definition quality.h:37
double max_aspect_ratio
Definition quality.h:39
double duplicate_vertex_tolerance
Definition quality.h:36
bool check_self_intersection_risk
Definition quality.h:41
double min_trim_length
Definition quality.h:38
int self_intersection_samples
Definition quality.h:40
Definition vls.h:53