UF_FACET_add_facet_to_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Adds a facet to a faceted model. The "adjacent_facet_ids" array
contains a facet id for each edge in the new facet. A value
of UF_FACET_NULL_FACET_ID means that that edge of the new
facet is not to be made adjacent to any existing facet. Note
that the adjacent facets must contain an edge corresponding
to that in the new facet, and if they do not then an error is
returned and no facet is created. This function can return the
error code UF_FACET_err_zero_facets_produced when given a
polygon with adjacent duplicate vertices.

返回
Return code:
0 = No error
not 0 = Error code, which includes
UF_FACET_err_non_manifold
UF_FACET_err_bad_adjacency
UF_FACET_err_facet_not_planar
UF_FACET_err_zero_facets_produced

环境
内部和外部

参见
UF_FACET_del_facet_from_model
UF_FACET_set_adjacent_facet

For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_add_facet_to_model
(
tag_t model,
int num_vertices,
double vertices [ ] [ 3 ] ,
double normals [ ] [ 3 ] ,
int adjacent_facet_ids [ ] ,
int * new_facet_id
)
tag_t (tag_t类型)modelInput(输入)The model to which the facet is to be added
int (整数型)num_verticesInput(输入)The number of vertices in the new facet
double (实数型)vertices [ ] [ 3 ] Input(输入)The vertices of the new facet. Each element of
three double in this argument represents a 3-space
(X, Y, Z) position.
double (实数型)normals [ ] [ 3 ] Input(输入)The vertex normals for the new facet. Each element
of three double in this argument represents a
3-space (X, Y, Z) normal vector
If this is specified as NULL then the facet normal
will be computed and used for all of the vertices in
the new facet.
int (整数型)adjacent_facet_ids [ ] Input(输入)The facets which are adjacent to the new facet at
each of its edges. If there is no adjacent facet to
the edge then UF_FACET_NULL_FACET_ID should
be specified for that edge.
int * (整数型指针)new_facet_idOutput(输出)The id of the new facet created

 


 
UF_FACET_ask_adjacent_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the facet adjacent to a specified edge of a specified facet. If
there is no facet adjacent to the facet edge specified then
UF_FACET_NULL_FACET_ID is returned in adjacent_facet_id and
the contents of edge_id_in_adjacent_facet is undefined.

环境
内部和外部

参见
UF_FACET_add_facet_to_model
UF_FACET_set_adjacent_facet
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_adjacent_facet
(
tag_t model,
int facet_id,
int edge_id,
int * adjacent_facet_id,
int * edge_id_in_adjacent_facet
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int (整数型)edge_idInput(输入)The edge of which the adjacent facet is being
inquired.
int * (整数型指针)adjacent_facet_idOutput(输出)The adjacent facet
int * (整数型指针)edge_id_in_adjacent_facetOutput(输出)The edge in the adjacent facet which is
adjacent to edge_id in facet_id.

 


 
UF_FACET_ask_available_solid (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the solid model on which a faceted model is based. If
the faceted model is not based on any solid or if the solid is
excluded by reference set or is in an unloaded component then
NULL_TAG is returned in "solid"

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_available_solid
(
tag_t model,
tag_t * solid
)
tag_t (tag_t类型)modelInput(输入)The model.
tag_t * (tag_t型的指针)solidOutput(输出)IF "model has an available
defining solid then the tag of that
solid, otherwise NULL_TAG".

 


 
UF_FACET_ask_default_parameters (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the default faceting parameters for creating faceted models
from solid bodies and faces.

环境
内部和外部

参见
UF_FACET_set_default_parameters
UF_FACET_ask_model_parameters

For example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_default_parameters
(
UF_FACET_parameters_p_t parameters
)
UF_FACET_parameters_p_tparametersOutput(输出)Default parameters for faceting solids.

 


 
UF_FACET_ask_edge_convexity (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the convexity of an edge between two facets. The convexity
values are UF_FACET_IS_CONVEX, UF_IS_FACET_CONCAVE,
and UF_FACET_CONVEXITY_NOT_DETERMINED; the last of
these indicate that the two facets adjacent to the edge are very nearly
coplanar and therefore whether the edge should be considered convex
or concave is unclear. (Note that an ifail is returned if the specified
edge is open.)

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_edge_convexity
(
tag_t model,
int facet_id,
int edge_in_facet,
int * convexity
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int (整数型)edge_in_facetInput(输入)The edge for which convexity is being inquired.
int * (整数型指针)convexityOutput(输出)The convexity of the edge.

 


 
UF_FACET_ask_face_id_of_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the face id of a facet. Output is a pointer to UF_FACET_NULL_FACE_ID if
the facet is not associated with any face in the model. If the facet_id is out
of range for this model an error will occur.

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_face_id_of_facet
(
tag_t model,
int facet_id,
int * face_id
)
tag_t (tag_t类型)modelInput(输入)The model.
int (整数型)facet_idInput(输入)The id of the facet.
int * (整数型指针)face_idOutput(输出)The id of the face.

 


 
UF_FACET_ask_face_id_of_solid_face (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the face id of a face, given its tag. Output is a pointer to
UF_FACET_NULL_FACE_ID if the face is not present in the model or if
face tags have not been stored (note that face tags are stored only if
"store_face_tags" is set to "true" when faceting a solid).

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_face_id_of_solid_face
(
tag_t model,
tag_t face_tag,
int * face_id
)
tag_t (tag_t类型)modelInput(输入)The model.
tag_t (tag_t类型)face_tagInput(输入)The solid face tag.
int * (整数型指针)face_idOutput(输出)The face id.

 


 
UF_FACET_ask_max_facet_verts (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the maximum number of vertices of any facet in the model.
This routine can be used to ensure that the arrays required by
UF_FACET_ask_vertices_of_facet and UF_FACET_ask_normals_of_facet are
sufficiently large to contain the result.

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_max_facet_verts
(
tag_t model,
int * num_facets
)
tag_t (tag_t类型)modelInput(输入)The model.
int * (整数型指针)num_facetsOutput(输出)The maximum number of facets of any facet in the model.

 


 
UF_FACET_ask_model_parameters (查看源代码)
 
定义在: uf_facet.h
 
概述
Determines faceting parameters when given a faceted model which
was generated from (and remains associated with a solid).

环境
内部和外部

参见
UF_FACET_facet_solid
UF_FACET_update_model
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_model_parameters
(
tag_t model,
UF_FACET_parameters_p_t parameters
)
tag_t (tag_t类型)modelInput(输入)The model.
UF_FACET_parameters_p_tparametersOutput(输出)The parameters to facet the solid
associated with "model".

 


 
UF_FACET_ask_models_of_solid (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the faceted model(s) of a specified solid body or face.

环境
内部和外部

参见
UF_FACET_ask_solid_of_model
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_models_of_solid
(
tag_t solid,
int * n_faceted_models,
tag_t * * faceted_models
)
tag_t (tag_t类型)solidInput(输入)A solid body or face
int * (整数型指针)n_faceted_modelsOutput(输出)The number of faceted models associated with
"solid".
tag_t * *faceted_modelsOutput to be freed
输出并释放
The tags of the faceted models associated with
"solid". This space is allocated by the called routine
and must be freed by the caller using UF_free.

 


 
UF_FACET_ask_n_facets_in_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the number of facets in a model.

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_n_facets_in_model
(
tag_t model,
int * num_facets
)
tag_t (tag_t类型)modelInput(输入)The model.
int * (整数型指针)num_facetsOutput(输出)The number of facets in the model.

 


 
UF_FACET_ask_normals_of_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the vertex normals of the facet with the specified facet id.
The caller is responsible for making sure that the normals array
is large enough to contain all of the normal data.

环境
内部和外部

参见
UF_FACET_ask_vertices_of_facet
UF_FACET_ask_num_verts_in_facet
UF_FACET_ask_max_facet_verts
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_normals_of_facet
(
tag_t model,
int facet_id,
int * num_vertices,
double normals [ ] [ 3 ]
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int * (整数型指针)num_verticesOutput(输出)The number of vertices in the facet.
double (实数型)normals [ ] [ 3 ] Output(输出)The vertex normals for this facet. Each element of
three double in this argument represents a 3-space
(X, Y, Z) normal vector.
Note that this is passed by the caller, not allocated
by the routine, and the caller is responsible for
ensuring that this array is sufficiently long, which
can be done by previously calling
UF_FACET_ask_num_verts_in_facet or by calling
UF_FACET_ask_max_facet_verts.

 


 
UF_FACET_ask_num_faces (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the number of faces in a model. Typically only useful if the model has
been derived from a solid model. For models constructed directly, the output
will be zero.

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_num_faces
(
tag_t model,
int * num_faces
)
tag_t (tag_t类型)modelInput(输入)The model.
int * (整数型指针)num_facesOutput(输出)The number of faces in the model.

 


 
UF_FACET_ask_num_facets_in_face (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the number of facets in a face. If the face_id is out of range for this
model an error will occur.

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_num_facets_in_face
(
tag_t model,
int face_id,
int * num_facets
)
tag_t (tag_t类型)modelInput(输入)The model.
int (整数型)face_idInput(输入)The id of the face.
int * (整数型指针)num_facetsOutput(输出)The number of facets in the face.

 


 
UF_FACET_ask_num_verts_in_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the number of vertices in a facet.

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_num_verts_in_facet
(
tag_t model,
int facet_id,
int * num_vertices
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int * (整数型指针)num_verticesOutput(输出)The number of vertices in the facet.

 


 
UF_FACET_ask_params_of_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the vertex parameters of the facet with the specified facet id.
The caller is responsible for making sure that the params array
is large enough to contain all of the parameter data.

环境
内部和外部

参见
UF_FACET_ask_vertices_of_facet
UF_FACET_ask_num_verts_in_facet
UF_FACET_ask_max_facet_verts

历史
Original release was in V14.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_params_of_facet
(
tag_t model,
int facet_id,
int * num_params,
double params [ ] [ 3 ]
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int * (整数型指针)num_paramsOutput(输出)The number of vertices in the facet.
double (实数型)params [ ] [ 3 ] Output(输出)The vertex parameters for this facet. Each element
of three double in this argument represents the
parametric values (u,v,t) at a vertex.
Note that this is passed by the caller, not allocated
by the routine, and the caller is responsible for
ensuring that this array is sufficiently long, which
can be done by previously calling
UF_FACET_ask_num_verts_in_facet or by calling
UF_FACET_ask_max_facet_verts.

 


 
UF_FACET_ask_plane_equation (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the plane equation of a facet.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_plane_equation
(
tag_t model,
int facet_id,
double plane_normal [ 3 ] ,
double * d_coefficient
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
double (实数型)plane_normal [ 3 ] Output(输出)The plane normal for the facet. This is a 3-space
(X, Y, Z) normal vector. The (X, Y, Z) of this
vector provide the A, B, and C coefficients
respectively of the plane equation:
Ax + By + Cz +D = 0
double * (实数型指针)d_coefficientOutput(输出)The d_coefficient for the plane of the facet. This
provides the D coefficient in the above equation.

 


 
UF_FACET_ask_solid_face_of_face_id (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the solid face tag of a face, given its id. If the face id is out of
range for this model, an error will occur. If face tags have not been stored
and the face id is in range, then NULL_TAG is output. (Note that face tags are
stored only if "store_face_tags" is set to "true" when faceting a solid.)

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_solid_face_of_face_id
(
tag_t model,
int face_id,
tag_t * face_tag
)
tag_t (tag_t类型)modelInput(输入)The model.
int (整数型)face_idInput(输入)The id of the face.
tag_t * (tag_t型的指针)face_tagOutput(输出)The solid face tag.

 


 
UF_FACET_ask_solid_face_of_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquire the solid face tag of a facet. Output is a pointer to NULL_TAG if the
facet is not associated with any face in the model. If the facet_id is out of
range for this model an error will occur.

Note that the model must have been faceted with "store_face_tags" set to
"true" for this function to return a meaningful result (otherwise NULL_TAG
will be returned for all facets).

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_solid_face_of_facet
(
tag_t model,
int facet_id,
tag_t * face_tag
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
tag_t * (tag_t型的指针)face_tagOutput(输出)The solid face tag.

 


 
UF_FACET_ask_solid_of_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the solid model on which a faceted model is based. If the
faceted model is not based on any solid then NULL_TAG is returned.

环境
内部和外部

参见
UF_FACET_ask_models_of_solid
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_solid_of_model
(
tag_t model,
tag_t * solid
)
tag_t (tag_t类型)modelInput(输入)The faceted model.
tag_t * (tag_t型的指针)solidOutput(输出)The associated solid. This is NULL_TAG if there is
no associated model.

 


 
UF_FACET_ask_vertex_convexity (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the convexity of a vertex in a facet. The convexity values are
UF_FACET_IS_CONVEX, UF_FACET_IS_CONCAVE, and
UF_FACET_CONVEXITY_NOT_DETERMINED; the last of these
indicates that the two edges from the vertex are very nearly colinear
and therefore whether the vertex should be considered convex or
concave is unclear.

环境
内部和外部

参见
UF_FACET_ask_edge_convexity
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_vertex_convexity
(
tag_t model,
int facet_id,
int vertex_in_facet,
int * convexity
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int (整数型)vertex_in_facetInput(输入)The vertex for which convexity is being inquired.
int * (整数型指针)convexityOutput(输出)The convexity of the vertex

 


 
UF_FACET_ask_vertices_of_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires the vertices of the facet with the specified facet id.
The caller is responsible for assuring that the vertices array is
large enought to hold all of the vertices of the facet.

环境
内部和外部

参见
UF_FACET_ask_normals_of_facet
UF_FACET_ask_max_facet_verts
UF_FACET_ask_num_verts_in_facet
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_ask_vertices_of_facet
(
tag_t model,
int facet_id,
int * num_vertices,
double vertices [ ] [ 3 ]
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
int * (整数型指针)num_verticesOutput(输出)The number of vertices in the facet.
double (实数型)vertices [ ] [ 3 ] Output(输出)The vertices for this facet. Each element of three
double in this argument represents a 3-space
(X, Y, Z) position.
Note that this is passed by the caller, not allocated
by the routine, and the caller is responsible for
ensuring that this array is sufficiently long, which
can be done by previously calling
UF_FACET_ask_num_verts_in_facet or by calling
UF_FACET_ask_max_facet_verts.

 


 
UF_FACET_create_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Creates an empty faceted model which is not associated with any solid.

环境
内部和外部

参见
UF_FACET_add_facet_to_model
UF_FACET_model_edits_done

For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_create_model
(
tag_t object_in_part,
tag_t * model
)
tag_t (tag_t类型)object_in_partInput(输入)An object in the part in which the faceted model is
to be created.
tag_t * (tag_t型的指针)modelOutput(输出)The new faceted model.

 


 
UF_FACET_cycle_facets (查看源代码)
 
定义在: uf_facet.h
 
概述
Iterates over the facets in a faceted model. The cycle is started using
the code UF_FACET_NULL_FACET_ID and this is also returned
when there are no further facets in the model. Note that although
"facet_id" is an integer, there is no guarantee that "facet_id+1" is a
valid facet id.

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_cycle_facets
(
tag_t model,
int * facet_id
)
tag_t (tag_t类型)modelInput(输入)The faceted model to be cycled.
int * (整数型指针)facet_idInput / OutputOn input the id of the current facet in the model. Pass in
UF_FACET_NULL_FACET_ID to start the cycle.
On output the id of the next facet in the model, if there are
no more facets, UF_FACET_NULL_FACET_ID is returned.

 


 
UF_FACET_cycle_facets_in_face (查看源代码)
 
定义在: uf_facet.h
 
概述
Iterates over the facets in a face. The cycle is started using
the code UF_FACET_NULL_FACET_ID and this is also returned
when there are no further facets in the face. Note that although
"facet_id" is an integer, there is no guarantee that "facet_id+1" is a
valid facet id.
If the face_id is outside the range for this model, an error occurs.

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
assemblies

 
int UF_FACET_cycle_facets_in_face
(
tag_t model,
int face_id,
int * facet_id
)
tag_t (tag_t类型)modelInput(输入)The model.
int (整数型)face_idInput(输入)The face whose facets are to be cycled.
int * (整数型指针)facet_idInput / OutputOn input the id of the current facet in the model. Pass in
UF_FACET_NULL_FACET_ID to start the cycle.
On output the id of the next facet in the model, if there are
no more facets, UF_FACET_NULL_FACET_ID is returned.

 


 
UF_FACET_del_facet_from_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Deletes a facet from a model. This operation leaves a hole in the
faceted model where the facet was deleted, unless the deleted facet
was at the edge of a sheet. If the model previously enclosed space
then it will no longer do so. If required at a future time, the hole can
be patched either by using UF_FACET_add_facet_to_model to add
new facets to the model, or by using UF_FACET_set_adjacent_facet to
stitch existing facets onto the model.

环境
内部和外部

参见
UF_FACET_add_facet_to_model

For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_del_facet_from_model
(
tag_t model,
int facet_id
)
tag_t (tag_t类型)modelInput(输入)The model from which the facet is to be deleted.
int (整数型)facet_idInput(输入)The facet id of the facet to be deleted

 


 
UF_FACET_delete_all_facets_from_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Deletes all of the facets from a model.

环境
内部和外部

参见
UF_FACET_add_facet_to_model
 
需要许可证(S)
assemblies

 
int UF_FACET_delete_all_facets_from_model
(
tag_t model
)
tag_t (tag_t类型)modelInput(输入)The model from which the facet is to be deleted.

 


 
UF_FACET_disassoc_from_solid (查看源代码)
 
定义在: uf_facet.h
 
概述
Disassociates a faceted model from its generating solid so that it
stands on its own. The link is established only if the faceted
model was created using UF_FACET_facet_solid.

环境
内部和外部

参见
UF_FACET_facet_solid

For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_disassoc_from_solid
(
tag_t model
)
tag_t (tag_t类型)modelInput(输入)The model which is to be disassociated from its
solid definition.

 


 
UF_FACET_facet_solid (查看源代码)
 
定义在: uf_facet.h
 
概述
Produces a faceted model from a solid body or face.
NOTE: The faceted body created is added to the reference set of the
work occurrence if used in context.

返回
Return code:
0 = No error
not 0 = Error code, which includes
UF_FACET_err_non_manifold

环境
内部和外部

参见
UF_FACET_ask_default_parameters
UF_FACET_ask_model_parameters
UF_FACET_is_model_up_to_date
UF_FACET_update_model

For example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_facet_solid
(
tag_t solid_entity,
UF_FACET_parameters_p_t parameters,
tag_t * facet_model
)
tag_t (tag_t类型)solid_entityInput(输入)The solid to be faceted
UF_FACET_parameters_p_tparametersInput(输入)The parameters to be used to facet
the solid. If NULL is specified
then the defaults are used.
tag_t * (tag_t型的指针)facet_modelOutput(输出)The faceted model produced

 


 
UF_FACET_find_edge_in_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Determines if a specified edge appears in a specified facet.

返回
Return code:
0 = No error
not 0 = Error code which includes
UF_FACET_err_edge_not_found

环境
内部和外部

参见
UF_FACET_ask_adjacent_facet
For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_find_edge_in_facet
(
tag_t model,
int facet_id,
double vertex_1 [ 3 ] ,
double vertex_2 [ 3 ] ,
int * sense,
int * edge_id
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
double (实数型)vertex_1 [ 3 ] Input(输入)The first vertex in the edge. This is a 3-space
(X, Y, Z) position.
double (实数型)vertex_2 [ 3 ] Input(输入)The second vertex in the edge. This is a 3-space
(X, Y, Z) position.
int * (整数型指针)senseOutput(输出)The sense of the edge in the facet. This is:
0 if the edge appears as vertex_1 -> vertex_2
1 if the edge appears as vertex_2 -> vertex_1
int * (整数型指针)edge_idOutput(输出)The id of the edge in the facet.

 


 
UF_FACET_is_facet_convex (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires if a facet is convex. A facet is convex if none of its vertices
are concave.

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_is_facet_convex
(
tag_t model,
int facet_id,
logical * is_convex
)
tag_t (tag_t类型)modelInput(输入)The model
int (整数型)facet_idInput(输入)The id of the facet.
logical *is_convexOutput(输出)TRUE = facet has no concave vertices
FALSE = facet has concave vertices

 


 
UF_FACET_is_model_convex (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires if a faceted model is convex. A model is convex if none of its
edges are concave.

环境
内部和外部

参见
For an example please refer to example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FACET_is_model_convex
(
tag_t model,
logical * is_convex
)
tag_t (tag_t类型)modelInput(输入)The model
logical *is_convexOutput(输出)TRUE if the model has no concave edges and
FALSE otherwise.

 


 
UF_FACET_is_model_up_to_date (查看源代码)
 
定义在: uf_facet.h
 
概述
Enquires if a faceted model is up to date.

环境
内部和外部

参见
UF_FACET_update_model
For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_is_model_up_to_date
(
tag_t model,
logical * up_to_date
)
tag_t (tag_t类型)modelInput(输入)The faceted model.
logical *up_to_dateOutput(输出)Whether or not "model" is up_to_date.

 


 
UF_FACET_model_edits_done (查看源代码)
 
定义在: uf_facet.h
 
概述
Indicates that edits to the specified faceted model are now complete.
This allows the system to delete the temporary data structures which it
creates to facilitate editing. This function should be called after the
program has completed a sequence of editing operations (other than
creation and update) on a faceted model.

Note that if this routine is not called then no harm results, other than
that the program will consume more memory than is necessary.

环境
内部和外部

参见
UF_FACET_create_model

For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_model_edits_done
(
tag_t model
)
tag_t (tag_t类型)modelInput(输入)The model which we have finished editing.

 


 
UF_FACET_rebuild_adjacencies (查看源代码)
 
定义在: uf_facet.h
 
概述
Determines the adjacencies between the facets of a faceted body. The
routine uses the individual facet definitions and determines which
have shared edges. It is particularly useful where the faceted body has
been constructed using UF_FACET_add_facet_to_model without
specifying the adjacent facets, and may prove convenient when writing
code to import faceted models from elsewhere.

环境
内部和外部
 
需要许可证(S)
assemblies

 
int UF_FACET_rebuild_adjacencies
(
tag_t model
)
tag_t (tag_t类型)modelInput(输入)The tag of the faceted model

 


 
UF_FACET_set_adjacent_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Sets a facet as being adjacent to another facet along a specified edge.

返回
Return code:
0 = No error
not 0 = Error code, which includes
UF_FACET_err_bad_adjacency

环境
内部和外部

参见
UF_FACET_add_facet_to_model

For an example please refer to example
 
需要许可证(S)
assemblies

 
int UF_FACET_set_adjacent_facet
(
tag_t model,
int facet_id,
int edge,
int adjacent_facet_id
)
tag_t (tag_t类型)modelInput(输入)The model in which the two facets reside
int (整数型)facet_idInput(输入)The facet for which the adjacent facet is to be
specified
int (整数型)edgeInput(输入)The edge in facet_id for which and adjacent facet is
to be specified.
int (整数型)adjacent_facet_idInput(输入)The adjacent facet.

 


 
UF_FACET_set_default_parameters (查看源代码)
 
定义在: uf_facet.h
 
概述
Sets the default faceting parameters for creating faceted models from
solid bodies and faces.

环境
内部和外部

参见
UF_FACET_ask_default_parameters
UF_FACET_ask_model_parameters
 
需要许可证(S)
assemblies

 
int UF_FACET_set_default_parameters
(
UF_FACET_parameters_p_t parameters
)
UF_FACET_parameters_p_tparametersInput(输入)Default parameters for faceting solids.

 


 
UF_FACET_set_vertex_of_facet (查看源代码)
 
定义在: uf_facet.h
 
概述
Change the location of a vertex of a facet in a faceted body. Note that
the normals at this vertex are not changed.

环境
内部和外部
 
需要许可证(S)
assemblies

 
int UF_FACET_set_vertex_of_facet
(
tag_t model,
int facet_id,
int vertex_in_facet,
double location [ 3 ]
)
tag_t (tag_t类型)modelInput(输入)The model.
int (整数型)facet_idInput(输入)The id of the facet.
int (整数型)vertex_in_facetInput(输入)The vertex whose location is being changed.
double (实数型)location [ 3 ] Input(输入)The new location of the vertex.

 


 
UF_FACET_update_model (查看源代码)
 
定义在: uf_facet.h
 
概述
Updates a faceted model if it was generated from a solid. This
function returns an error if the faceted model was not generated from
a solid. If NULL is specified for the faceting parameters then those
used to facet the solid previously are used.

If the model is already up to date with the same faceting parameters,
then this function performs no action. If the model is not derived from
a solid then an error is returned.

返回
Return code:
0 = No error
not 0 = Error code, which includes
UF_FACET_err_non_manifold

环境
内部和外部

参见
UF_FACET_ask_default_parameters
UF_FACET_ask_model_parameters
UF_FACET_is_model_up_to_date
For an example please refer to example

历史
In V14.0, the parameters argument data type was changed to
UF_FACET_parameters_p_t.
 
需要许可证(S)
assemblies

 
int UF_FACET_update_model
(
tag_t model,
UF_FACET_parameters_p_t parameters
)
tag_t (tag_t类型)modelInput(输入)The faceted model to update.
UF_FACET_parameters_p_tparametersInput(输入)The parameters to be used for faceting the
model. If NULL is specified then the
original parameters are used.