IProfiles_DG Interface
GetProfile
GetNamedProfile
IProfiles_DG interface is implemented by 3D elements of Generic 3D Objects,
namely by surface patches and 3D curves. IProfiles_DG gives access to the geometry
of 3D elements in axial direction. Every 3D element has a set of parameters,
which is managed by the IElement_DG interface. For example,
a 3D curve has two parameters,
which are correspondent to x and y coordinates of the cross-entity point at the
current z cross position. Plot of x coordinate versus cross position z is called
Profile. The IProfiles_DG interface manages collection of profiles for the selected 3D element.
Profiles and their names for every type of element are listed in
Geometric Elements.
IProfiles_DG can be obtained with query or cast from an IElement_DG interface
implemented by an element of a Generic 3D Object
surface strip. The path to the
interface is:
DG Kernel -> IModel_DG-> IEntity_DG
-> IStrip_DG
-> IElement_DG->
IProfiles_DG.
See also Interface List
IStrip_DG GetProfile( int id)
Parameters
id -[in] zero-based index of the profile.
-
Remarks
-
- This method returns the strip representing id-th component of the compound
element which implements the interface. Information about range of index and
correspondent names can be retrieved from the parent IElement_DG interface,
where this interface was queried from. For example, if this interface
was queried from IElement_DG implemented by a 3D curve (point in cross-entity)
than after a call iStrip = GetProfile(0) will represent
projection of the curve to the (x, z) plane. Values of the profile for
different points can be obtained using IStrip_DG
methods of iStrip and GetParam method called for elements of iStrip.
-
IStrip_DG GetNamedProfile(string paramName)
Parameters:
szParamName - [in] - the parameter name.
Remarks:
- This method returns IStrip_DG interface implemented by
profile, which represents the named component of the compound
element. Information about range of index and
correspondent names can be retrieved from the parent IElement_DG interface, where
this interface was queried from. For example, if this interface
was queried from IElement_DG implemented by a 3D curve (point in cross-entity)
than after a call iStrip = GetProfile("Component0") will represent projection of the curve to the (x, z) plane. Values of the
profile for different points can be obtained using IStrip_DG
methods of iStrip
and GetParam method called for elements of iStrip.
-
|