Edit_PolyCylinder

Functions

void DEdit_PolyCylinder (HC_KEY key, int point_count, DPoint const *points, int radius_count, double const *radii, char const *capping)
 Similar to Edit_PolyCylinder(), but operates on double-precision data. More...
 
void DEdit_PolyCylinder_Points (HC_KEY key, int offset, int delete_count, int insert_count, DPoint const points[])
 Similar to Edit_PolyCylinder_Points, but operates on double-precision data. More...
 
void DEdit_PolyCylinder_Radii (HC_KEY key, int offset, int delete_count, int insert_count, double const radii[])
 Similar to Edit_PolyCylinder_Radii, but operates on double-precision data. More...
 
void DEdit_PolyCylinder_With_Basis (HC_KEY key, int p_count, DPoint const pts[], int r_count, double const radii[], char const *capping, DVector const basis[])
 Similar to Edit_PolyCylinder_With_Basis, but operates on double-precision data. More...
 
void Edit_PolyCylinder (HC_KEY key, int p_count, const HC_POINT *pts, int r_count, const float *radii, const char *capping)
 Edits a polycylinder as it sits in the database, without deleting and reinserting. More...
 
void Edit_PolyCylinder_Points (HC_KEY key, int offset, int delete_count, int insert_count, Point const points[])
 Edits an existing polycylinder by inserting or deleting its points. More...
 
void Edit_PolyCylinder_Radii (HC_KEY key, int offset, int delete_count, int insert_count, float const radii[])
 Edits an existing polycylinder by inserting or deleting its points. More...
 
void Edit_PolyCylinder_With_Basis (HC_KEY key, int p_count, Point const pts[], int r_count, float const radii[], char const *capping, Vector const basis[])
 Edits the polycylinder's points, radii, and vector basis. More...
 

Detailed Description

Function Documentation

◆ DEdit_PolyCylinder()

void DEdit_PolyCylinder ( HC_KEY  key,
int  point_count,
DPoint const *  points,
int  radius_count,
double const *  radii,
char const *  capping 
)

Similar to Edit_PolyCylinder(), but operates on double-precision data.

Parameters
key- key to a polycylinder object.
point_count- number of items in points
points- Vector of x-y-z triplets for the coordinates of the center of the polycylinder. (A simple N x 3 array may also be used.) Passed by reference always.
radius_count- number of items in radii
radii- array of radius lengths as measured from the centerline
capping- string specifying which ends to cap, either "first", "second", "none", or "both"

◆ DEdit_PolyCylinder_Points()

void DEdit_PolyCylinder_Points ( HC_KEY  key,
int  offset,
int  delete_count,
int  insert_count,
DPoint const  points[] 
)

Similar to Edit_PolyCylinder_Points, but operates on double-precision data.

Parameters
key- key to a polycylinder object
offset- offset into the polycylinder's points list to begin editing
delete_count- number of points to delete
insert_count- number of points to insert
points- the points to insert into this polycylinder, or null if deleting

◆ DEdit_PolyCylinder_Radii()

void DEdit_PolyCylinder_Radii ( HC_KEY  key,
int  offset,
int  delete_count,
int  insert_count,
double const  radii[] 
)

Similar to Edit_PolyCylinder_Radii, but operates on double-precision data.

Parameters
key- key to a polycylinder object
offset- offset into the polycylinder's radii list to begin editing
delete_count- number of radii to delete
insert_count- number of radii to insert
radii- the radii to insert into this polycylinder, or null if deleting

◆ DEdit_PolyCylinder_With_Basis()

void DEdit_PolyCylinder_With_Basis ( HC_KEY  key,
int  p_count,
DPoint const  pts[],
int  r_count,
double const  radii[],
char const *  capping,
DVector const  basis[] 
)

Similar to Edit_PolyCylinder_With_Basis, but operates on double-precision data.

Parameters
key- key to a polycylinder object
p_count- number of points in pts
pts- the new points
r_count- number of radii in radii
radii- the new radii
capping- string specifying which ends to cap, either "first", "second", "none", or "both"
basis- the new basis

◆ Edit_PolyCylinder()

void Edit_PolyCylinder ( HC_KEY  key,
int  p_count,
const HC_POINT *  pts,
int  r_count,
const float *  radii,
const char *  capping 
)

Edits a polycylinder as it sits in the database, without deleting and reinserting.

Parameters
key- key to a polycylinder object.
p_count- number of items in pts
pts- Vector of x-y-z triplets for the coordinates of the center of the polycylinder. (A simple N x 3 array may also be used.) Passed by reference always.
r_count- number of items in radii
radii- array of radius lengths as measured from the centerline
capping- string specifying which ends to cap, either "first", "second", "none", or "both"

DETAILS

A polycylinder is a multi-segmented cylinder that can have varying radii at the ends of each segment.

NOTES

This primitive can be used to create cones.

RESTRICTIONS

Any local vertex attributes will be thrown away if the polycylinder is edited.

See also
Insert_PolyCylinder, Insert_Polyline

◆ Edit_PolyCylinder_Points()

void Edit_PolyCylinder_Points ( HC_KEY  key,
int  offset,
int  delete_count,
int  insert_count,
Point const  points[] 
)

Edits an existing polycylinder by inserting or deleting its points.

Parameters
key- key to a polycylinder object
offset- offset into the polycylinder's points list to begin editing
delete_count- number of points to delete
insert_count- number of points to insert
points- the points to insert into this polycylinder, or null if deleting

◆ Edit_PolyCylinder_Radii()

void Edit_PolyCylinder_Radii ( HC_KEY  key,
int  offset,
int  delete_count,
int  insert_count,
float const  radii[] 
)

Edits an existing polycylinder by inserting or deleting its points.

Parameters
key- key to a polycylinder object
offset- offset into the polycylinder's radii list to begin editing
delete_count- number of radii to delete
insert_count- number of radii to insert
radii- the radii to insert into this polycylinder, or null if deleting

◆ Edit_PolyCylinder_With_Basis()

void Edit_PolyCylinder_With_Basis ( HC_KEY  key,
int  p_count,
Point const  pts[],
int  r_count,
float const  radii[],
char const *  capping,
Vector const  basis[] 
)

Edits the polycylinder's points, radii, and vector basis.

Parameters
key- key to a polycylinder object
p_count- number of points in pts
pts- the new points
r_count- number of radii in radii
radii- the new radii
capping- string specifying which ends to cap, either "first", "second", "none", or "both"
basis- the new basis