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

#include <opennurbs_bezier.h>

Public Member Functions

bool Create (const ON_3dPoint *box_corners, int order0, int order1, int order2)
 
bool Create (const ON_BoundingBox &bbox, int order0, int order1, int order2)
 
bool Create (int dim, bool is_rat, int order0, int order1, int order2)
 
double * CV (int i, int j, int k) const
 
int CVSize () const
 
ON::point_style CVStyle () const
 
int Degree (int) const
 
void Destroy ()
 
int Dimension () const
 
ON_Interval Domain (int) const
 
void Dump (ON_TextLog &text_log) const
 
void EmergencyDestroy ()
 
bool Evaluate (double r, double s, double t, int der_count, int v_stride, double *v) const
 
bool GetBBox (double *boxmin, double *boxmax, int bGrowBox=false) const
 
bool GetCV (int i, int j, int k, ON::point_style, double *) const
 
bool GetCV (int i, int j, int k, ON_3dPoint &) const
 
bool GetCV (int i, int j, int k, ON_4dPoint &) const
 
bool IsRational () const
 
bool IsSingular (int) const
 
bool IsValid () const
 
bool MakeNonRational ()
 
bool MakeRational ()
 
bool Morph (const ON_SpaceMorph &morph)
 
 ON_BezierCage ()
 
 ON_BezierCage (const ON_3dPoint *box_corners, int order0, int order1, int order2)
 
 ON_BezierCage (const ON_BezierCage &src)
 
 ON_BezierCage (const ON_BoundingBox &bbox, int order0, int order1, int order2)
 
 ON_BezierCage (int dim, bool is_rat, int order0, int order1, int order2)
 
ON_BezierCageoperator= (const ON_BezierCage &src)
 
int Order (int) const
 
ON_3dPoint PointAt (double r, double s, double t) const
 
ON_3dPoint PointAt (ON_3dPoint rst) const
 
bool Read (ON_BinaryArchive &archive)
 
bool ReserveCVCapacity (int cv_capacity)
 
bool Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
bool Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
bool Scale (double scale_factor)
 
bool SetCV (int i, int j, int k, const ON_3dPoint &point)
 
bool SetCV (int i, int j, int k, const ON_4dPoint &hpoint)
 
bool SetCV (int i, int j, int k, ON::point_style, const double *)
 
bool SetWeight (int i, int j, int k, double w)
 
bool Transform (const ON_Xform &xform)
 
bool Translate (const ON_3dVector &translation_vector)
 
double Weight (int i, int j, int k) const
 
bool Write (ON_BinaryArchive &archive) const
 
bool ZeroCVs ()
 
 ~ON_BezierCage ()
 

Public Attributes

double * m_cv
 
int m_cv_capacity
 
int m_cv_stride [3]
 
int m_dim
 
bool m_is_rat
 
int m_order [3]
 

Constructor & Destructor Documentation

◆ ON_BezierCage() [1/5]

ON_BezierCage::ON_BezierCage ( )

◆ ON_BezierCage() [2/5]

ON_BezierCage::ON_BezierCage ( int dim,
bool is_rat,
int order0,
int order1,
int order2 )

◆ ON_BezierCage() [3/5]

ON_BezierCage::ON_BezierCage ( const ON_BoundingBox & bbox,
int order0,
int order1,
int order2 )

◆ ON_BezierCage() [4/5]

ON_BezierCage::ON_BezierCage ( const ON_3dPoint * box_corners,
int order0,
int order1,
int order2 )

◆ ~ON_BezierCage()

ON_BezierCage::~ON_BezierCage ( )

◆ ON_BezierCage() [5/5]

ON_BezierCage::ON_BezierCage ( const ON_BezierCage & src)

Member Function Documentation

◆ Create() [1/3]

bool ON_BezierCage::Create ( const ON_3dPoint * box_corners,
int order0,
int order1,
int order2 )

◆ Create() [2/3]

bool ON_BezierCage::Create ( const ON_BoundingBox & bbox,
int order0,
int order1,
int order2 )

◆ Create() [3/3]

bool ON_BezierCage::Create ( int dim,
bool is_rat,
int order0,
int order1,
int order2 )

◆ CV()

double * ON_BezierCage::CV ( int i,
int j,
int k ) const

◆ CVSize()

int ON_BezierCage::CVSize ( ) const

◆ CVStyle()

ON::point_style ON_BezierCage::CVStyle ( ) const

◆ Degree()

int ON_BezierCage::Degree ( int dir) const

◆ Destroy()

void ON_BezierCage::Destroy ( )

◆ Dimension()

int ON_BezierCage::Dimension ( ) const

◆ Domain()

ON_Interval ON_BezierCage::Domain ( int ) const

◆ Dump()

void ON_BezierCage::Dump ( ON_TextLog & text_log) const

◆ EmergencyDestroy()

void ON_BezierCage::EmergencyDestroy ( )

◆ Evaluate()

bool ON_BezierCage::Evaluate ( double r,
double s,
double t,
int der_count,
int v_stride,
double * v ) const

◆ GetBBox()

bool ON_BezierCage::GetBBox ( double * boxmin,
double * boxmax,
int bGrowBox = false ) const

◆ GetCV() [1/3]

bool ON_BezierCage::GetCV ( int i,
int j,
int k,
ON::point_style style,
double * Point ) const

◆ GetCV() [2/3]

bool ON_BezierCage::GetCV ( int i,
int j,
int k,
ON_3dPoint & point ) const

◆ GetCV() [3/3]

bool ON_BezierCage::GetCV ( int i,
int j,
int k,
ON_4dPoint & point ) const

◆ IsRational()

bool ON_BezierCage::IsRational ( ) const

◆ IsSingular()

bool ON_BezierCage::IsSingular ( int side) const

◆ IsValid()

bool ON_BezierCage::IsValid ( ) const

◆ MakeNonRational()

bool ON_BezierCage::MakeNonRational ( )

◆ MakeRational()

bool ON_BezierCage::MakeRational ( )

◆ Morph()

bool ON_BezierCage::Morph ( const ON_SpaceMorph & morph)

◆ operator=()

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

◆ Order()

int ON_BezierCage::Order ( int dir) const

◆ PointAt() [1/2]

ON_3dPoint ON_BezierCage::PointAt ( double r,
double s,
double t ) const

◆ PointAt() [2/2]

ON_3dPoint ON_BezierCage::PointAt ( ON_3dPoint rst) const

◆ Read()

bool ON_BezierCage::Read ( ON_BinaryArchive & archive)

◆ ReserveCVCapacity()

bool ON_BezierCage::ReserveCVCapacity ( int cv_capacity)

◆ Rotate() [1/2]

bool ON_BezierCage::Rotate ( double rotation_angle,
const ON_3dVector & rotation_axis,
const ON_3dPoint & rotation_center )

◆ Rotate() [2/2]

bool ON_BezierCage::Rotate ( double sin_angle,
double cos_angle,
const ON_3dVector & rotation_axis,
const ON_3dPoint & rotation_center )

◆ Scale()

bool ON_BezierCage::Scale ( double scale_factor)

◆ SetCV() [1/3]

bool ON_BezierCage::SetCV ( int i,
int j,
int k,
const ON_3dPoint & point )

◆ SetCV() [2/3]

bool ON_BezierCage::SetCV ( int i,
int j,
int k,
const ON_4dPoint & hpoint )

◆ SetCV() [3/3]

bool ON_BezierCage::SetCV ( int i,
int j,
int k,
ON::point_style style,
const double * Point )

◆ SetWeight()

bool ON_BezierCage::SetWeight ( int i,
int j,
int k,
double w )

◆ Transform()

bool ON_BezierCage::Transform ( const ON_Xform & xform)

◆ Translate()

bool ON_BezierCage::Translate ( const ON_3dVector & translation_vector)

◆ Weight()

double ON_BezierCage::Weight ( int i,
int j,
int k ) const

◆ Write()

bool ON_BezierCage::Write ( ON_BinaryArchive & archive) const

◆ ZeroCVs()

bool ON_BezierCage::ZeroCVs ( )

Member Data Documentation

◆ m_cv

double* ON_BezierCage::m_cv

◆ m_cv_capacity

int ON_BezierCage::m_cv_capacity

◆ m_cv_stride

int ON_BezierCage::m_cv_stride[3]

◆ m_dim

int ON_BezierCage::m_dim

◆ m_is_rat

bool ON_BezierCage::m_is_rat

◆ m_order

int ON_BezierCage::m_order[3]

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