BRL-CAD
libbrep_brep_tools.h File Reference
#include "common.h"
#include <vector>
#include "opennurbs.h"
#include "brep.h"
Include dependency graph for libbrep_brep_tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NE   1
 
#define NW   2
 
#define SW   3
 
#define SE   4
 

Functions

bool ON_NearZero (double val, double epsilon)
 Return truthfully whether a value is within a specified epsilon distance from zero. More...
 
double ON_Curve_Get_Horizontal_Tangent (const ON_Curve *curve, double min, double max, double zero_tol)
 Search for a horizontal tangent on the curve between two curve parameters. More...
 
double ON_Curve_Get_Vertical_Tangent (const ON_Curve *curve, double min, double max, double zero_tol)
 Search for a vertical tangent on the curve between two curve parameters. More...
 
int ON_Curve_Has_Tangent (const ON_Curve *curve, double ct_min, double ct_max, double t_tol)
 Test whether a curve interval contains one or more horizontal or vertical tangents. More...
 
BREP_EXPORT bool ON_Surface_IsFlat (ON_Plane *frames, double f_tol)
 Perform flatness test of surface. More...
 
BREP_EXPORT bool ON_Surface_IsFlat_U (ON_Plane *frames, double f_tol)
 Perform flatness test of surface in U only. More...
 
BREP_EXPORT bool ON_Surface_IsFlat_V (ON_Plane *frames, double f_tol)
 Perform flatness test of surface in V only. More...
 
BREP_EXPORT bool ON_Surface_IsStraight (ON_Plane *frames, double s_tol)
 Perform straightness test of surface. More...
 
BREP_EXPORT bool ON_Surface_SubSurface (const ON_Surface *srf, ON_Interval *u_val, ON_Interval *v_val, ON_Surface **t1, ON_Surface **t2, ON_Surface **t3, ON_Surface **t4, ON_Surface **result)
 Create a surface based on a subset of a parent surface. More...
 
BREP_EXPORT bool ON_Surface_Quad_Split (const ON_Surface *srf, const ON_Interval &u, const ON_Interval &v, double upt, double vpt, ON_Surface **q0, ON_Surface **q1, ON_Surface **q2, ON_Surface **q3)
 Create four sub-surfaces from a parent surface. More...
 

Detailed Description

Utility routines for working with geometry.

Definition in file libbrep_brep_tools.h.