zhang-alvin / analyticgeometry Goto Github PK
View Code? Open in Web Editor NEWBuilds a 3D box with piercing cylinder via core/gmi API
Builds a 3D box with piercing cylinder via core/gmi API
I will be adding some stuff for debugging this in here https://github.com/mortezah/analyticGeometry/tree/debug
To begin with, I have added a routine that inspects the model. The output of that on your model is as follows
print info for model ents with dimension 0
-------------------------------------------
ent: tag 58 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 56 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 54 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 60 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 5 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 10 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 15 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
ent: tag 2 type vertex isP (0, 0) range (-1, -1)--(-1, -1)
-------------------------------------------
print info for model ents with dimension 1
-------------------------------------------
ent: tag 9 type edge isP (1, 0) range (0, 6.28319)--(-1, -1) ++ (0.55, 0.2, 0) -- (0.55, 0.2, 0)
ent: tag 10 type edge isP (1, 0) range (0, 6.28319)--(-1, -1) ++ (0.55, 0.2, 0.41) -- (0.55, 0.2, 0.41)
ent: tag 50 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0, 0) -- (2.5, 0, 0)
ent: tag 48 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (2.5, 0, 0) -- (2.5, 0.41, 0)
ent: tag 46 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0.41, 0) -- (2.5, 0.41, 0)
ent: tag 52 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0, 0) -- (0, 0.41, 0)
ent: tag 11 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0, 0.41) -- (2.5, 0, 0.41)
ent: tag 16 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (2.5, 0, 0.41) -- (2.5, 0.41, 0.41)
ent: tag 20 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0.41, 0.41) -- (2.5, 0.41, 0.41)
ent: tag 6 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0, 0.41) -- (0, 0.41, 0.41)
ent: tag 73 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0, 0) -- (0, 0, 0.41)
ent: tag 72 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (2.5, 0, 0) -- (2.5, 0, 0.41)
ent: tag 71 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (2.5, 0.41, 0) -- (2.5, 0.41, 0.41)
ent: tag 74 type edge isP (0, 0) range (0, 1)--(-1, -1) ++ (0, 0.41, 0) -- (0, 0.41, 0.41)
-------------------------------------------
print info for model ents with dimension 2
-------------------------------------------
ent: tag 11 type face isP (1, 0) range (0, 6.28319)--(0, 3.14159)
ent: tag 5 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 4 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 3 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 2 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 1 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 6 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 33 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 0 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 22020768 type face isP (0, 0) range (0, 1)--(0, 1)
ent: tag 7 type face isP (0, 0) range (0, 1)--(0, 1)
-------------------------------------------
print info for model ents with dimension 3
-------------------------------------------
ent: tag 92 type region isP (0, 0) range (-1, -1)--(-1, -1)
-------------------------------------------
things seem consistent for model verts, edges, and region. But there seems to be something problematic about model faces. I expect 7 faces in the model but there seems to be more. Am I missing something?
I don't yet know if this is the cause of the problem, but just wanted to check with you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.