CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FMUtils.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef __FMUTILS_H__
25#define __FMUTILS_H__
26
27#include "FMContour2D.h"
28#include "FMContour3D.h"
29#include "FMProfile2D.h"
30
31namespace FacetModeler
32{
33
36
38
39FMGEOMETRY_API double FindMinimumParamA(std::vector< Intersection >& vecPoints);
40FMGEOMETRY_API double FindMaximumParamA(std::vector< Intersection >& vecPoints);
41
42FMGEOMETRY_API bool FindClosestIntToBaseStart(const Contour2D& cBase, const Contour2D& cCutter, Intersection& intClosest);
43FMGEOMETRY_API bool FindClosestIntToBaseEnd(const Contour2D& cBase, const Contour2D& cCutter, Intersection& intClosest);
44
45FMGEOMETRY_API bool FindFarthestIntFromBasePt(const Contour2D& cContour, const OdGeLine2d& lnCutter, const OdGePoint2d& ptBase, Intersection& outInt);
46FMGEOMETRY_API bool FindFarthestIntFromBasePt(const Contour2D& cContour, const Contour2D& cCutter, const OdGePoint2d& ptBase, Intersection& outInt);
47FMGEOMETRY_API Intersection FindFarthestIntFromPt(const OdGePoint2d& ptBase, const std::vector< Intersection >& vecPoints);
48
49FMGEOMETRY_API Intersection FindIntClosestToPt(const OdGePoint2d& ptBase, const std::vector< Intersection >& vecPoints);
50FMGEOMETRY_API bool IsIntersectionCloserToPt(const OdGePoint2d& ptBase, const Intersection& intCurrent, const Intersection& intToCheck);
51
52}; // namespace FacetModeler
53
54#endif //__FMUTILS_H__
#define FMGEOMETRY_API
FMGEOMETRY_API void ExtendContour(Contour2D &rContour)
FMGEOMETRY_API double FindMinimumParamA(std::vector< Intersection > &vecPoints)
FMGEOMETRY_API double FindMaximumParamA(std::vector< Intersection > &vecPoints)
FMGEOMETRY_API void ExtendContourEnd(Contour2D &rContour)
FMGEOMETRY_API void ExtendContourStart(Contour2D &rContour)
FMGEOMETRY_API Intersection FindFarthestIntFromPt(const OdGePoint2d &ptBase, const std::vector< Intersection > &vecPoints)
FMGEOMETRY_API bool FindClosestIntToBaseEnd(const Contour2D &cBase, const Contour2D &cCutter, Intersection &intClosest)
FMGEOMETRY_API bool FindClosestIntToBaseStart(const Contour2D &cBase, const Contour2D &cCutter, Intersection &intClosest)
FMGEOMETRY_API bool IsIntersectionCloserToPt(const OdGePoint2d &ptBase, const Intersection &intCurrent, const Intersection &intToCheck)
FMGEOMETRY_API Intersection FindIntClosestToPt(const OdGePoint2d &ptBase, const std::vector< Intersection > &vecPoints)
FMGEOMETRY_API bool FindFarthestIntFromBasePt(const Contour2D &cContour, const OdGeLine2d &lnCutter, const OdGePoint2d &ptBase, Intersection &outInt)