CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
Db3dSolidGeomParams.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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#pragma once
25
26#include "Ge/GeVector3d.h"
27#include "DbSweepOptions.h"
28#include "DbLoftOptions.h"
29#include "DbRevolveOptions.h"
30#include <cfloat>
31
41
45{
46 double radius = -1.0;
47};
48
53{
54 double height = -1.0;
55 double majorRadius = -1.0;
56 double minorRadius = -1.0;
57 bool isElliptical() const { return majorRadius != minorRadius; }
58};
59
64{
65 double topMajorRadius = -1.0;
66 bool isTruncated() const { return topMajorRadius != 0.0; }
67};
68
73{
74 double majorRadius = -1.0;
75 double minorRadius = -1.0;
76 bool isDoughnut() const { return OdGreater(majorRadius, minorRadius); }
77 bool isApple() const { return majorRadius > 0.0 && OdLess(majorRadius, minorRadius); }
78 bool isLemon() const { return majorRadius <= 0.0; }
79 bool isVortex() const { return OdEqual(majorRadius, minorRadius); }
80 bool isDegenerate() const { return !isDoughnut(); }
81};
82
86{
87 double xLen = -1.0;
88 double yLen = -1.0;
89 double zLen = -1.0;
90};
91
95{
96 double xLen = -1.0;
97 double yLen = -1.0;
98 double zLen = -1.0;
99};
100
105{
106 double height = -1.0;
107 int sides = 0;
108 double radius = -1.0;
109 double topRadius = -1.0;
110 bool isTruncated() const { return topRadius != 0.0; }
111};
112
121
130
140
OdArray< OdDbEntityPtr > OdDbEntityPtrArray
Definition DbEntity.h:56
bool OdEqual(double x, double y, double tol=1.e-10)
Definition OdaDefs.h:542
bool OdLess(double x, double y, double tol=1.e-10)
Definition OdaDefs.h:547
bool OdGreater(double x, double y, double tol=1.e-10)
Definition OdaDefs.h:557
OdDbEntityPtrArray crossSectionCurves
OdDbEntityPtrArray guideCurves