Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Wording fixes in documentation#1910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
alhirzel wants to merge3 commits intoCadQuery:master
base:master
Choose a base branch
Loading
fromalhirzel:doc-wording-fixes

Conversation

@alhirzel
Copy link

No description provided.

@codecov
Copy link

codecovbot commentedOct 8, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.70%. Comparing base (dadf151) to head (341b240).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@##           master    #1910      +/-   ##==========================================- Coverage   95.74%   95.70%   -0.04%==========================================  Files          29       29                Lines        7827     7827                Branches     1179     1179              ==========================================- Hits         7494     7491       -3- Misses        192      194       +2- Partials      141      142       +1

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

While the first code style is what people default to, it's important to note that when you write your code like this it's equivalent as writting it on a single line.
It's then more difficult to debug as you cannot visualize each operation step by step, which is a functionality that is provided by the CQ-Editor debugger for example.
While the chained code style is succinct and intuitive and may be what people default to, it's important to note that all operations take place within a single statement (even if the code spans multiple lines).
This chained style be more difficult to debug using tools that allow a user to step statement-by-statement through the code (such as the CQ-Editor), because operations will occur simultaneously as part of a single statement.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
This chained style be more difficult to debug using tools that allow a user to step statement-by-statement through the code (such as the CQ-Editor), because operations will occur simultaneously as part of a single statement.
This chained stylecanbe more difficult to debug using tools that allow a user to step statement-by-statement through the code (such as the CQ-Editor), because operations will occur simultaneously as part of a single statement.

While theFluent API exposesa lot of functionality, you may find scenarios that require extra flexibility or require working with lower level objects.

Thedirect API is the API that is called by thefluent API under the hood. The 9 topological classes and their methodscompose thedirect API.
TheDirect API is the API that is called by theFluent API under the hood. The 9 topological classes and their methodscomprise theDirect API.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Did you want a newline between the sentences here too?

TheDirect API is the API that is called by theFluent API under the hood. The 9 topological classes and their methodscomprise theDirect API.
These classes actually wrap the equivalent Open CASCADE Technology (OCCT) classes.
The 9 topological classes are:
The 9 topological classes are:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Perhaps an extra newline above this line so that it starts a new paragraph?

Each class has its own methods to create and/or edit shapes of their respective type.
One can also use the:doc:`free-func` to create and modify shapes.
As already explained in:ref:`cadquery_concepts` there is a hierarchy when composing geometry from topological classes:
a:class:`~cadquery.Wire` is made of several:class:`~cadquery.Edge`s which are themselves made of several :class:`~cadquery.Vertex`es.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

These class embeds are not rendering correctly in the finished document.

This means you can create geometry starting at the lowest level of this hierarchy and exert exact control over t.
For example we can create a circular facelike so ::
For example we can create a circular faceby first creating a list of :class:`~cadquery.Wire`s that form the circle as follows: ::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Same class embed rendering issue here.

The Direct API is so named because each method call directly returns an object of the specified topological type.
Functions in the Direct API do not provide a parent/children data structure that can be traversed with function call chaining.
The Direct API is more verbose than the Fluent API and more tedious to work with, but as it offers more flexibility it is sometimes more convenient or capable than the Fluent API.
(For example, you can work with faces in the Direct API, which is something you can't do in the Fluent API.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't understand this statement. Faces are accessible at the fluent API level.

OCP provides access to (almost) all the OCCT C++ libraries in Python and in CadQuery.
Working with the OCCT API will give you the maximum flexibility and control over you designs, but is very verbose and difficult to use.
You will need to have a strong working knowledge of the underlying OCCT C++ libraries to use the Direct API in CadQuery.
The most useful references for this purpose are:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe an extra newline above this line?


The package name of any class is written at the top of the documentation page. Often it's written in the class name itself as a prefix.
The package name of any class is written at the top of its documentation page.
The package name is also often written in the class name itself as a prefix.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Some repetition has been added in a few places like this: "The package name" being used twice.

@jmwright
Copy link
Member

Thanks@alhirzel I left comments.

@adam-urbanczyk@lorenzncode The Codecov fail is for an indirect change on a code file that was not altered.

lorenzncode reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jmwrightjmwrightjmwright left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@alhirzel@jmwright

[8]ページ先頭

©2009-2025 Movatter.jp