#include <opennurbs_plus_squish.h>
|
| ON_Squisher () |
|
virtual | ~ON_Squisher () |
|
void | Dump (ON_TextLog &text_log) const |
|
void | DumpEnergyDebugText (ON_TextLog &text_log) const |
| Dumps the text for debugging the energy optimizer. More...
|
|
const ON_Mesh * | GetMesh2d () const |
|
int | GetMesh2dEdges (ON_SimpleArray< ON_Line > *edges) const |
|
const ON_Mesh * | GetMesh3d () const |
|
int | GetMesh3dEdges (ON_SimpleArray< ON_Line > *edges) const |
|
ON_Plane | GetPlane () const |
| Gets the plane that was used to flatten the surface, or ON_Plane::UnsetPlane if local estimates were used. More...
|
|
void | SaveOriginalObjectIdAndComponentIndex (const ON_UUID obj_id, const ON_COMPONENT_INDEX obj_ci, ON_Geometry *squished_geometry) |
| Saves the original object id and component index in TL_SquishMapBackInfo user data. More...
|
|
ON_PolylineCurve * | SquishCurve (const ON_Curve &curve3d) const |
|
ON_Mesh * | SquishMesh (const ON_SquishParameters &squishParams, const ON_Mesh &mesh3d) |
|
ON_Mesh * | SquishMesh (const ON_SquishParameters &squishParams, const ON_Mesh &mesh3d, const ON_SimpleArray< const ON_Geometry * > *marks, ON_SimpleArray< ON_Geometry * > *squished_marks) |
|
bool | SquishPoint (ON_3dPoint point3d, ON_MESH_POINT &point2d) const |
|
ON_PointCloud * | SquishPointCloud (const ON_PointCloud &pc3) const |
|
ON_Brep * | SquishSurface (const ON_SquishParameters &squishParams, const ON_Surface &surface3d) |
|
ON_Brep * | SquishSurface (const ON_SquishParameters &squishParams, const ON_Surface &surface3d, const ON_SimpleArray< const ON_Geometry * > *marks, ON_SimpleArray< ON_Geometry * > *squished_marks) |
|
ON_TextDot * | SquishTextDot (const ON_TextDot &textDot) const |
|
◆ ON_Squisher()
ON_Squisher::ON_Squisher |
( |
| ) |
|
◆ ~ON_Squisher()
virtual ON_Squisher::~ON_Squisher |
( |
| ) |
|
|
virtual |
◆ Dump()
void ON_Squisher::Dump |
( |
ON_TextLog & |
text_log | ) |
const |
◆ DumpEnergyDebugText()
void ON_Squisher::DumpEnergyDebugText |
( |
ON_TextLog & |
text_log | ) |
const |
Dumps the text for debugging the energy optimizer.
◆ DumpSquishInfoText()
static void ON_Squisher::DumpSquishInfoText |
( |
const ON_Geometry * |
squished_geometry, |
|
|
ON_TextLog & |
text_log, |
|
|
const wchar_t * |
objid_locale_str, |
|
|
const wchar_t * |
meshcount_locale_str |
|
) |
| |
|
static |
Dumps the text for the SquishInfo command.
◆ GetMesh2d()
const ON_Mesh* ON_Squisher::GetMesh2d |
( |
| ) |
const |
gets a const pointer to the 2d squished mesh, or NULL if it doesn't exist
◆ GetMesh2dEdges()
adds the edges of the 2d mesh as ON_Line objects. The edge at each index corresponds to the squished edge from the same index resulting from GetMesh3dEdges
◆ GetMesh3d()
const ON_Mesh* ON_Squisher::GetMesh3d |
( |
| ) |
const |
gets a const pointer to the 3d mesh used for squishing, or NULL if it isn't stored
◆ GetMesh3dEdges()
adds the edges of the 3d mesh as ON_Line objects. The edge at each index corresponds to the squished edge from the same index resulting from GetMesh2dEdges
◆ GetPlane()
ON_Plane ON_Squisher::GetPlane |
( |
| ) |
const |
Gets the plane that was used to flatten the surface, or ON_Plane::UnsetPlane if local estimates were used.
◆ Is2dPatternSquished()
static bool ON_Squisher::Is2dPatternSquished |
( |
const ON_Geometry * |
geometry | ) |
|
|
static |
◆ SaveOriginalObjectIdAndComponentIndex()
Saves the original object id and component index in TL_SquishMapBackInfo user data.
◆ SquishBack2dMarks()
◆ SquishCurve()
Description: After you have flattened a mesh or surface, you can call this function to flatten a 3d curve that is near the 3d mesh or 3d surface. Parameters: curve3d - [in] 3d curve near the 3d mesh or 3d surface. curve2d - [in] if not NULL, the 2d result will be stored in this curve. If NULL, a polyline curve will be created.
◆ SquishMesh() [1/2]
Description: Use to flatten a mesh. Remarks: The ON_Squisher class is NOT designed to support more than one squish operation.
◆ SquishMesh() [2/2]
Description: Use to flatten a mesh and marks. Remarks: It is the responsibility of the called to delete the geometry returned in the squished_marks array. The ON_Squisher class is NOT designed to support more than one squish operation.
◆ SquishPoint()
Description: After you have flattened a mesh or surface, you can call this function to flatten a 3d curve that is near the 3d mesh or 3d surface. Parameters: point3d - [in] 3d point near the 3d mesh or 3d surface. point2d - [out 2d point on the squished mesh.
◆ SquishPointCloud()
Description: After you have flattened a mesh or surface, you can call this function to flatten a PointCloud that is near the 3d mesh or 3d surface. Parameters: pc3 - [in] PointCloud near the 3d surface. squished_cloud - [in] if not NULL, the 2d result will be stored in this cloud. If NULL, a new cloud will be returned
◆ SquishSurface() [1/2]
Description: Use to flatten a surface. Remarks: The TL_SquishMesh class is NOT designed for to support more than one squish operation.
◆ SquishSurface() [2/2]
Description: Use to flatten a surface and marks. Remarks: It is the responsibility of the called to delete the geometry returned in the squished_marks array. The TL_SquishMesh class is NOT designed for to support more than one squish operation.
◆ SquishTextDot()
Description: After you have flattened a mesh or surface, call this function to map a TextDot on or near the surface to the resulting 2d surface Parameters: textDot - [in] the textDot to squish squished_dot - [in] if not NULL, the 2d result will be stored in this TextDot. If NULL, a TextDot will be created.