QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_BrepFace Class Reference

#include <opennurbs_brep.h>

Inheritance diagram for ON_BrepFace:
ON_SurfaceProxy ON_Surface ON_Geometry ON_Object

Public Member Functions

ON_BrepBrep () const
 
bool ChangeSurface (int si)
 
void ClearBoundingBox ()
 
ON_COMPONENT_INDEX ComponentIndex () const
 
ON_MeshCreateMesh (const ON_MeshParameters &mp, ON_Mesh *mesh=NULL) const
 
ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
void DestroyMesh (ON::mesh_type mesh_type, bool bDeleteMesh=true)
 
void DestroyRuntimeCache (bool bDelete=true)
 
void Dump (ON_TextLog &) const
 
class ON_BrepFaceSideFaceSide (int dir) const
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
ON_BrepLoopLoop (int fli) const
 
int LoopCount () const
 
const ON_MeshMesh (ON::mesh_type mesh_type) const
 
 ON_BrepFace ()
 
 ON_BrepFace (int)
 
ON_BrepFaceoperator= (const ON_BrepFace &)
 
ON_BrepLoopOuterLoop () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
ON_BOOL32 Reverse (int dir)
 
ON_BOOL32 SetDomain (int dir, double t0, double t1)
 
bool SetDomain (ON_Interval udom, ON_Interval vdom)
 
bool SetMesh (ON::mesh_type, ON_Mesh *mesh)
 
unsigned int SizeOf () const
 
int SurfaceIndexOf () const
 
const ON_SurfaceSurfaceOf () const
 
bool TransformTrim (const ON_Xform &xform)
 
ON_BOOL32 Transpose ()
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_BrepFace ()
 
- Public Member Functions inherited from ON_SurfaceProxy
ON_MeshCreateMesh (const ON_MeshParameters &mp, ON_Mesh *mesh=NULL) const
 
ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
int Degree (int) const
 
void DestroyRuntimeCache (bool bDelete=true)
 
int Dimension () const
 
ON_Interval Domain (int) const
 
void Dump (ON_TextLog &) const
 
virtual ON_SurfaceDuplicateSurface () const
 
ON_BOOL32 Evaluate (double, double, int, int, double *, int=0, int *=0) const
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
bool GetClosestPoint (const ON_3dPoint &P, double *s, double *t, double maximum_distance=0.0, const ON_Interval *sdomain=0, const ON_Interval *tdomain=0) const
 
ON_BOOL32 GetLocalClosestPoint (const ON_3dPoint &, double, double, double *, double *, const ON_Interval *=NULL, const ON_Interval *=NULL) const
 
bool GetNextDiscontinuity (int dir, ON::continuity c, double t0, double t1, double *t, int *hint=NULL, int *dtype=NULL, double cos_angle_tolerance=0.99984769515639123915701155881391, double curvature_tolerance=ON_SQRT_EPSILON) const
 
int GetNurbForm (ON_NurbsSurface &, double=0.0) const
 
bool GetNurbFormParameterFromSurfaceParameter (double surface_s, double surface_t, double *nurbs_s, double *nurbs_t) const
 
ON_BOOL32 GetParameterTolerance (int, double, double *, double *) const
 
ON_BOOL32 GetSpanVector (int, double *) const
 
bool GetSurfaceParameterFromNurbFormParameter (double nurbs_s, double nurbs_t, double *surface_s, double *surface_t) const
 
ON_BOOL32 GetSurfaceSize (double *width, double *height) const
 
int HasNurbForm () const
 
ON_BOOL32 IsClosed (int) const
 
bool IsContinuous (ON::continuity c, double s, double t, int *hint=NULL, double point_tolerance=ON_ZERO_TOLERANCE, double d1_tolerance=ON_ZERO_TOLERANCE, double d2_tolerance=ON_ZERO_TOLERANCE, double cos_angle_tolerance=0.99984769515639123915701155881391, double curvature_tolerance=ON_SQRT_EPSILON) const
 
ISO IsIsoparametric (const ON_BoundingBox &bbox) const
 
ISO IsIsoparametric (const ON_Curve &curve, const ON_Interval *curve_domain=NULL) const
 
ON_CurveIsoCurve (int dir, double c) const
 
ON_BOOL32 IsPeriodic (int) const
 
ON_BOOL32 IsPlanar (ON_Plane *plane=NULL, double tolerance=ON_ZERO_TOLERANCE) const
 
ON_BOOL32 IsSingular (int) const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
ON_SurfaceOffset (double offset_distance, double tolerance, double *max_deviation=NULL) const
 
 ON_SurfaceProxy ()
 
 ON_SurfaceProxy (const ON_Surface *)
 
 ON_SurfaceProxy (const ON_SurfaceProxy &)
 
ON_SurfaceProxyoperator= (const ON_SurfaceProxy &)
 
const ON_SurfaceProxySurface () const
 
bool ProxySurfaceIsTransposed () const
 
ON_CurvePullback (const ON_Curve &curve_3d, double tolerance, const ON_Interval *curve_3d_subdomain=NULL, ON_3dPoint start_uv=ON_UNSET_POINT, ON_3dPoint end_uv=ON_UNSET_POINT) const
 
ON_CurvePushup (const ON_Curve &curve_2d, double tolerance, const ON_Interval *curve_2d_subdomain=NULL) const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
ON_BOOL32 Reverse (int)
 
void SetProxySurface (const ON_Surface *proxy_surface)
 
unsigned int SizeOf () const
 
int SpanCount (int) const
 
ON_BOOL32 Transform (const ON_Xform &)
 
ON_BOOL32 Transpose ()
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
virtual ~ON_SurfaceProxy ()
 
- Public Member Functions inherited from ON_Surface
bool AreaMassProperties (ON_MassProperties &mp, bool bArea=true, bool bFirstMoments=true, bool bSecondMoments=true, bool bProductMoments=true, double rel_tol=1.0e-6, double abs_tol=1.0e-6) const
 
ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual ON_SurfaceTree * CreateSurfaceTree () const
 
void DestroySurfaceTree ()
 
ON_BOOL32 Ev1Der (double u, double v, ON_3dPoint &point, ON_3dVector &du, ON_3dVector &dv, int quadrant=0, int *hint=0) const
 
ON_BOOL32 Ev2Der (double u, double v, ON_3dPoint &point, ON_3dVector &du, ON_3dVector &dv, ON_3dVector &duu, ON_3dVector &duv, ON_3dVector &dvv, int quadrant=0, int *hint=0) const
 
bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
ON_BOOL32 EvNormal (double u, double v, ON_3dPoint &point, ON_3dVector &du, ON_3dVector &dv, ON_3dVector &normal, int=0, int *=0) const
 
ON_BOOL32 EvNormal (double u, double v, ON_3dPoint &point, ON_3dVector &normal, int quadrant=0, int *hint=0) const
 
ON_BOOL32 EvNormal (double u, double v, ON_3dVector &normal, int quadrant=0, int *hint=0) const
 
ON_BOOL32 EvPoint (double u, double v, ON_3dPoint &point, int quadrant=0, int *hint=0) const
 
virtual bool Extend (int dir, const ON_Interval &domain)
 
ON_BOOL32 FrameAt (double u, double v, ON_Plane &frame) const
 
ON_BOOL32 GetDomain (int dir, double *t0, double *t1) const
 
virtual ON_BOOL32 GetSpanVectorIndex (int dir, double t, int side, int *span_vector_index, ON_Interval *span_interval) const
 
ON_BOOL32 HasBrepForm () const
 
int IntersectSurface (const ON_Surface *surfaceB, ON_ClassArray< ON_SSX_EVENT > &x, double intersection_tolerance=0.0, double overlap_tolerance=0.0, double fitting_tolerance=0.0, const ON_Interval *surfaceA_udomain=0, const ON_Interval *surfaceA_vdomain=0, const ON_Interval *surfaceB_udomain=0, const ON_Interval *surfaceB_vdomain=0) const
 
int IsAtSeam (double s, double t) const
 
bool IsAtSingularity (double s, double t, bool bExact=true) const
 
bool IsCone (ON_Cone *cone=NULL, double tolerance=ON_ZERO_TOLERANCE) const
 
bool IsCylinder (ON_Cylinder *cylinder=NULL, double tolerance=ON_ZERO_TOLERANCE) const
 
bool IsSolid () const
 
bool IsSphere (ON_Sphere *sphere=NULL, double tolerance=ON_ZERO_TOLERANCE) const
 
bool IsTorus (ON_Torus *torus=NULL, double tolerance=ON_ZERO_TOLERANCE) const
 
ON_3dVector NormalAt (double, double) const
 
ON_NurbsSurfaceNurbsSurface (ON_NurbsSurface *pNurbsSurface=NULL, double tolerance=0.0, const ON_Interval *s_subdomain=NULL, const ON_Interval *t_subdomain=NULL) const
 
ON::object_type ObjectType () const
 
 ON_Surface ()
 
 ON_Surface (const ON_Surface &)
 
ON_Surfaceoperator= (const ON_Surface &)
 
ON_3dPoint PointAt (double, double) const
 
bool SetDomain (int dir, ON_Interval domain)
 
virtual ON_BOOL32 Split (int dir, double c, ON_Surface *&west_or_south_side, ON_Surface *&east_or_north_side) const
 
const ON_SurfaceTree * SurfaceTree () const
 
virtual ON_BOOL32 Trim (int dir, const ON_Interval &domain)
 
bool VolumeMassProperties (ON_MassProperties &mp, bool bVolume=true, bool bFirstMoments=true, bool bSecondMoments=true, bool bProductMoments=true, ON_3dPoint base_point=ON_UNSET_POINT, double rel_tol=1.0e-6, double abs_tol=1.0e-6) const
 
virtual ~ON_Surface ()
 
- Public Member Functions inherited from ON_Geometry
ON_BoundingBox BoundingBox () const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
virtual bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
virtual bool IsDeformable () const
 
virtual bool IsMorphable () const
 
virtual bool MakeDeformable ()
 
virtual bool Morph (const ON_SpaceMorph &morph)
 
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Scale (double scale_factor)
 
virtual ON_BOOL32 SwapCoordinates (int i, int j)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
virtual ~ON_Geometry ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Public Attributes

bool m_bRev
 
int m_face_index
 
int m_face_material_channel
 
ON_U m_face_user
 
ON_UUID m_face_uuid
 
ON_SimpleArray< int > m_li
 
int m_si
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

 ON_BrepFace (const ON_BrepFace &)
 
 ON_OBJECT_DECLARE (ON_BrepFace)
 

Private Attributes

ON_Meshm_analysis_mesh
 
ON_BoundingBox m_bbox
 
ON_Brepm_brep
 
ON_Interval m_domain [2]
 
ON_Meshm_preview_mesh
 
ON_Meshm_render_mesh
 

Friends

class ON_Brep
 

Additional Inherited Members

- Public Types inherited from ON_Surface
enum  ISO {
  not_iso = 0 , x_iso = 1 , y_iso = 2 , W_iso = 3 ,
  S_iso = 4 , E_iso = 5 , N_iso = 6 , iso_count = 7
}
 
- Static Public Member Functions inherited from ON_Surface
static class ON_NurbsSurfaceCreateCubicLoft (int curve_count, const ON_Curve *const *curve_list, double k, int is_closed=0, ON::cubic_loft_end_condition start_shape=ON::cubic_loft_ec_quadratic, ON::cubic_loft_end_condition end_shape=ON::cubic_loft_ec_quadratic, class ON_NurbsSurface *nurbs_surface=0)
 
- Protected Member Functions inherited from ON_Surface
ON_CurvePullbackCurveProxy (const ON_CurveProxy &curveproxy_3d, double tolerance, const ON_Interval *curve_3d_subdomain, ON_3dPoint start_uv, ON_3dPoint end_uv) const
 
ON_CurvePullbackPolyCurve (const ON_PolyCurve &polycurve_3d, double tolerance, const ON_Interval *curve_3d_subdomain, ON_3dPoint start_uv, ON_3dPoint end_uv) const
 
ON_CurvePushupCurveProxy (const ON_CurveProxy &curveproxy_2d, double tolerance, const ON_Interval *curve_2d_subdomain) const
 
ON_CurvePushupPolyCurve (const ON_PolyCurve &polycurve_2d, double tolerance, const ON_Interval *curve_2d_subdomain) const
 
- Protected Attributes inherited from ON_Surface
ON_SurfaceTree * m_stree
 

Constructor & Destructor Documentation

◆ ON_BrepFace() [1/3]

ON_BrepFace::ON_BrepFace ( )

◆ ~ON_BrepFace()

ON_BrepFace::~ON_BrepFace ( )

◆ ON_BrepFace() [2/3]

ON_BrepFace::ON_BrepFace ( int face_index)

◆ ON_BrepFace() [3/3]

ON_BrepFace::ON_BrepFace ( const ON_BrepFace & )
private

Member Function Documentation

◆ Brep()

ON_Brep * ON_BrepFace::Brep ( ) const

◆ ChangeSurface()

bool ON_BrepFace::ChangeSurface ( int si)

◆ ClearBoundingBox()

void ON_BrepFace::ClearBoundingBox ( )
virtual

Reimplemented from ON_Geometry.

◆ ComponentIndex()

ON_COMPONENT_INDEX ON_BrepFace::ComponentIndex ( ) const
virtual

Reimplemented from ON_Geometry.

◆ CreateMesh()

ON_Mesh * ON_BrepFace::CreateMesh ( const ON_MeshParameters & mp,
ON_Mesh * mesh = NULL ) const
virtual

Reimplemented from ON_Surface.

◆ DataCRC()

ON__UINT32 ON_BrepFace::DataCRC ( ON__UINT32 current_remainder) const
virtual

Reimplemented from ON_Object.

◆ DestroyMesh()

void ON_BrepFace::DestroyMesh ( ON::mesh_type mesh_type,
bool bDeleteMesh = true )

◆ DestroyRuntimeCache()

void ON_BrepFace::DestroyRuntimeCache ( bool bDelete = true)
virtual

Reimplemented from ON_Object.

◆ Dump()

void ON_BrepFace::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ FaceSide()

ON_BrepFaceSide * ON_BrepFace::FaceSide ( int dir) const

◆ GetBBox()

ON_BOOL32 ON_BrepFace::GetBBox ( double * box_min,
double * box_max,
ON_BOOL32 bGrowBox = false ) const
virtual

Implements ON_Geometry.

◆ IsValid()

ON_BOOL32 ON_BrepFace::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ Loop()

ON_BrepLoop * ON_BrepFace::Loop ( int fli) const

◆ LoopCount()

int ON_BrepFace::LoopCount ( ) const

◆ Mesh()

const ON_Mesh * ON_BrepFace::Mesh ( ON::mesh_type mesh_type) const

◆ ON_OBJECT_DECLARE()

ON_BrepFace::ON_OBJECT_DECLARE ( ON_BrepFace )
private

◆ operator=()

ON_BrepFace & ON_BrepFace::operator= ( const ON_BrepFace & src)

◆ OuterLoop()

ON_BrepLoop * ON_BrepFace::OuterLoop ( ) const

◆ Read()

ON_BOOL32 ON_BrepFace::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ Reverse()

ON_BOOL32 ON_BrepFace::Reverse ( int dir)
virtual

Implements ON_Surface.

◆ SetDomain() [1/2]

ON_BOOL32 ON_BrepFace::SetDomain ( int dir,
double t0,
double t1 )
virtual

Reimplemented from ON_Surface.

◆ SetDomain() [2/2]

bool ON_BrepFace::SetDomain ( ON_Interval udom,
ON_Interval vdom )

◆ SetMesh()

bool ON_BrepFace::SetMesh ( ON::mesh_type mt,
ON_Mesh * mesh )

◆ SizeOf()

unsigned int ON_BrepFace::SizeOf ( ) const
virtual

Reimplemented from ON_Object.

◆ SurfaceIndexOf()

int ON_BrepFace::SurfaceIndexOf ( ) const

◆ SurfaceOf()

const ON_Surface * ON_BrepFace::SurfaceOf ( ) const

◆ TransformTrim()

bool ON_BrepFace::TransformTrim ( const ON_Xform & xform)

◆ Transpose()

ON_BOOL32 ON_BrepFace::Transpose ( )
virtual

Implements ON_Surface.

◆ Write()

ON_BOOL32 ON_BrepFace::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

Friends And Related Symbol Documentation

◆ ON_Brep

friend class ON_Brep
friend

Member Data Documentation

◆ m_analysis_mesh

ON_Mesh* ON_BrepFace::m_analysis_mesh
private

◆ m_bbox

ON_BoundingBox ON_BrepFace::m_bbox
private

◆ m_brep

ON_Brep* ON_BrepFace::m_brep
private

◆ m_bRev

bool ON_BrepFace::m_bRev

◆ m_domain

ON_Interval ON_BrepFace::m_domain[2]
private

◆ m_face_index

int ON_BrepFace::m_face_index

◆ m_face_material_channel

int ON_BrepFace::m_face_material_channel

◆ m_face_user

ON_U ON_BrepFace::m_face_user

◆ m_face_uuid

ON_UUID ON_BrepFace::m_face_uuid

◆ m_li

ON_SimpleArray<int> ON_BrepFace::m_li

◆ m_preview_mesh

ON_Mesh* ON_BrepFace::m_preview_mesh
private

◆ m_render_mesh

ON_Mesh* ON_BrepFace::m_render_mesh
private

◆ m_si

int ON_BrepFace::m_si

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